How to do it...

Follow these steps to configure a transit gateway to communicate between two VPCs that do not have a direct peering relationship:

  1. Log in to your account and go to the VPC management console.
  2. Scroll down to the bottom of the menu on the left-hand side of the screen and click Transit Gateways:

Create Transit Gateway
  1. Click Create Transit Gateway.

 

  1. Fill out the Name tag and Description for the transit gateway:

Transit Gateway name and description
  1. In the Configure the Transit Gateway section, leave the defaults as they are:

Configure the Transit Gateway screen
  1. Click Create Transit Gateway.
  2. Immediately after creation, the gateway will be in a pending state:

Gateway pending
  1. Once the gateway is available, select Transit Gateway Attachments from the left-hand menu and click Create Transit Gateway Attachment:

Create Transit Gateway Attachment screen
  1. On the following screen, select the transit gateway from the Transit Gateway ID dropdown. 
  2. Give the attachment an Attachment name tag.
  3. Select one of your VPCs in the VPC ID dropdown.
  4. Select the subnets from that VPC.

 

  1. Click Create Attachment and then repeat steps 9-12 for the other VPC.
  2. Go to Route Tables under the Virtual Private Cloud menu.
  3. Choose one of the VPC route tables and add a route for the IP addresses in the other VPC to point to the transit gateway target. Do the same for the other VPC.
  4. Test the connectivity between the EC2 instances you created in each VPC. Note that the ping command will be blocked by NACL firewall rules that prevent ICMP traffic.
  5. Once you've finished, delete the Transit Gateway to avoid any future charges.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset