7.
Hybrid Environments & VPC Peering
Wednesday, February 7, 2018 2:55 PM
VPN
Direct Connect
AWS Certified Solutions Architect - Associate Page 1
AWS Certified Solutions Architect - Associate Page 2
AWS Certified Solutions Architect - Associate Page 3
VPC Peering
Cross region peering is called inter-region peering is possible. Cross Account peering
is also possible.
AWS Certified Solutions Architect - Associate Page 4
Lab : Configure peering Connection between two VPC.
• Creating A VPC from scratch
• Configuring the VPC connection
• Configuring route tables for VPC peering routes
• Connecting from an instance in one VPC to an instance in another VPC via
its private IP address
1. Create a VPC having name as VPC2
2. Create Internet gateway having name as "VPC2-IGW" and attach it to VPC-2.
AWS Certified Solutions Architect - Associate Page 5
2. Create Internet gateway having name as "VPC2-IGW" and attach it to VPC-2.
3. Create a Subnet having name as "VPC2-Subnet" for VPC2.
4. Create a Route Table and add the igw to its route for internet traffic.
AWS Certified Solutions Architect - Associate Page 6
5. Create the EC2 Instances : In both the subnets
A. Configure the VPC Peering Connection
1. Initiating VPC Peering from VPC1 to VPC2
AWS Certified Solutions Architect - Associate Page 7
AWS Certified Solutions Architect - Associate Page 8
2. Create a route between our two instances. Adding the PCX into the Route
AWS Certified Solutions Architect - Associate Page 9
3. Ping the Instance from each other :
AWS Certified Solutions Architect - Associate Page 10
4. Try to connect from the Instance in VPC1 to Instance2 in other VPC
AWS Certified Solutions Architect - Associate Page 11