How to Create Internet Gateway on Amazon Web Services(AWS).

An internet gateway is a horizontally scaled, redundant, and highly available VPC component that allows communication between your VPC and the internet. An internet gateway supports IPv4 and IPv6 traffic.It does not cause availability risks or bandwidth constraints on your network traffic.

An internet gateway serves two purposes: to provide a target in your VPC route tables for internet-routable traffic, and to perform network address translation (NAT) for instances that have been assigned public IPv4 addresses.

 

  • Login to aws portal.
  • Click on Services.

 

Fig 1

 

  • Under Networking & Content Delivery select VPC.

 

Fig 2

 

  • Click on Internet Gateways.

 

Fig. 7

 

  • Click on Create Internet gateway.

 

Fig. 3

 

  • Provide internet gateway tag name.
  • Click on Create internet gateway.

 

Fig. 4

 

  • After sometime internet gateway is ready.
  • Click on Actions.

 

Fig. 5

 

  • Select attach to VPC option.

 

Fig. 8

 

Create Internet Gateway using Shell

To create an internet gateway, use the following command:

aws ec2 create-internet-gateway

To add a tag to the internet gateway

aws ec2 create-tags –resources internet-gateway-id –tags Key=<tag-key>,Value=<tag-value>

To attach the internet gateway to the VPC

aws ec2 attach-internet-gateway –internet-gateway-id internet-gateway-id –vpc-id vpc-id

 

Leave a Reply

Your email address will not be published.