Creating a VPC with an Internet Gateway
If you do not have an existing VPC, create a VPC and attach an Internet Gateway:
- Log in to the AWS Management Console and click VPC in the homepage.
- Click Create VPC at the top left corner.
- Configure the VPC:
- In the Resources to create field, select VPC only.
- In the Name tag field, set the VPC name.
- In the CIDR block field, specify an IPv4 address range for your VPC.
- In the Tenancy field, select Default.
- Click Create VPC at the bottom right corner.
- In the Virtual Private Cloud menu on the left, select Internet Gateways.
- Click Create Internet Gateway at the top right corner.
- In the Name tag field, set the Internet gateway name, then click Create internet gateway.
- At the top right corner, click Attach to a VPC or Actions > Attach to VPC.
- Select the VPC that you created and click Attach internet gateway.
Verify that the Internet gateway state changes from Detached to Attached.