Create Transit Gateway with Peering between Regions
Durgaprasad A |
135 steps |
6 minutes
Creating Transit Gateways
1
I created 2 VPC's in the same region ( each vpc has - 2 public , 2 private subnets , 1 public and 1 private route table ) \
After that click on transit gateway
2
Creating 1st Transit Gateway
3
Enter Transit Gateway name and Description
4
UnCheck Default Route table association and Default route table propagationThis gives more control on routing
5
A CIDR for the transit gateway must be provided . This must be unique to VPC CIDR of all the transit gateway attachment VPC's
6
Since in this case VPC CIDR start with 10 and 172 . I choose CIDR with 192
7
Click "Create transit gateway"
8
Click "Create transit gateway" to create 2nd Transit Gateway
9
Enter Transit Gateway name and Description
10
Disable route table association and propagation
11
Provide the CIDR for new transit gateway . Keep this unique to that of other transit gateway
12
Click "Create transit gateway"
Creating Transit Gateway Attachments
13
Create Transit Gateway Attachments with each of the VPC's .
Project1 VPC is attached to Transit Gateway 1
14
Click "Create transit gateway attachment"
15
Click "tgw-0c6c9842be062ee49 (transit-gateway-region1)" ( choose the transit Gateway and type of attachment since we are attaching to VPC it's of type VPC
16
Select the VPC . for transit gateway 1 the vpc is project1-vpc . When selected we are prompted to selected subnets . Select atleast one subnet from each AZ . This enables transit gateway to reach the resources in that AZ
17
Click "Create transit gateway attachment"
18
Create Transit Gateway Attachments with each of the VPC's .
Project2 VPC is attached to Transit Gateway 2