AWS Classroomnotes 29/Mar/2022

AWS VPC Peering

  • When we create a peering connection from one vpc to another vpc (once approved), a peering connection object will be created in both vpcs.
  • VPCs can be in the same region/different region, same account/different accounts. Peering will work as long as there cidr ranges dont collide.
  • The basic overview is as shown below
  • As of now we have two vpcs, where we can ping each other by public ip

Creating a Peering Connection

  • Steps for creating a peering connection:



  • Modify the Route tables in one vpc (oregon)

  • Now navigate to other vpc where the peering connection needs to be approved (mumbai)



  • Now modify the route table in other region (mumbai) to forward the packets (to oregon)

Verifying connectivity

  • Login into one ec2 instance created and ping other ec2 instance in a different vpc using private ip
  • We have established the connectivity.

Cleaning up

  • Remove the following in order
  • Router rules
  • Peering connection
  • ec2 instances
  • vpc
  • screen shots
Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%