Internet Gateway (IGW) is a VPC component that allows communication between instances in your VPC and the open internet. IGW is horizontally scaled, redundant, and highly available. It imposes no availability risks or bandwidth constraints on your network traffic. Only one IGW can be attached to the VPC at a time. An IGW cannot be detached from the VPC if there are active resources running inside your VPC, such as the EC2 and RDS instances. You must attach IGW to the VPC if the resources inside the VPC need to connect to the open internet. The default VPC that you get in each region has an IGW attached to it by default. Let's create and assign the new IGW to the VPC we created earlier.
To check all the relevant IGW cmdlets, you can use this:
PS C:\> Get-Command *InternetGateway*
To list the number of IGW and its association with VPC, you run this:
PS...