Adding VMware Transit Connect to Egress VPC (Part 3)

Gilles Chekroun


Lead VMware Cloud on AWS Solutions Architect
---

UPDATE 6 NOV 2020: Github terraform code here

Finally, here is Part 3 of this blog "series" around Egress VPC.

Part 1 is here and Part 2 is here

After setting up the  Egress VPC in part 1 and adding a VPN connected SDDC in part 2 I want to connect the SDDC and the Apps VPCs via a VMware Transit Connect a.k.a. VMware managed Transit gateway.

Lab Setup

Creating an SDDC Group

I have described in deep details the way to create SDDC group and attach Customer VPCs in this article. Let's go and do that quickly.
  1. Create an SDDC group and Attach the SDDC. This step will create the vTGW.
  2. Under "VPC Connectivity" tab, configure the Customer AWS  account number so the vTGW resource can be shared.
  3. On Customer AWS console, go to RAM (Resource Access Manager) and look for "Resources shared  with me"
  4. Accept the vTGW resource

Connecting Apps VPCs

We have now accepted the shared vTGW resource and are able to connect Customer Apps VPCs.

1 - On AWS console, go to VPC, Transit Gateways and select "Transit Gateways Attachments"

2 - Create 2 new attachments and connect the 2 Apps VPCs
3 - The new attachments will be in "pending acceptance" state until we accept them from the VMC console. Since this process is asynchronous, it can take a few mins (I have seen 3 to 10 mins) until we will see the acceptance request in the VMC console. Be patient.

4 - After accepting the VPCs in the VMC console, their state will move to "pending", then "available" and "associated"

Checking the vTGW routes learned in the SDDC

Adding CGW Firewall rules for vTGW

The CGW FW rules will allow traffic to and from the vTGW attached VPCs. We have now a new System Group that includes the VPC prefixes. These rules need to be "Applied to" the Direct Connect interface. It's a bit confusing for now but this is where the SDDC attachment as  "VPC" lives. We are looking to rename it to "DX/vTGW" or something similar.

Update the Apps VPCs route table 

From the Apps VPC point of view we have now 2 TGWs attachments (and by the way the AWS limit is 5). We need to select the proper way out of these VPCs to "TGW-Internet" or vTGW

Tests

Voila. At this stage all is ready.

  • SSH to the Ubuntu VM
  • Ping EC2 in Apps VPC 100
  • Ping EC2 in Apps VPC 200
  • Traceroute to the EC2s and verify that no NAT gateways are in the path.

Connection to On-prem

In my lab, I don't have Direct connect and the connectivity to on-prem would be something like:

Next Step

As many of you know, I am a fan of Terraform and my next project will be to automate this lab creation with Terraform.
I will update this post with a Github link when that's done.

Thanks for reading.

Comments

Post a Comment

Populars

AWS Transit Gateway and VMware Cloud on AWS

AWS Transit Gateway and Multiple Accounts

Using Terraform with multiple providers in multiple phases to deploy and configure VMware Cloud on AWS