AWS Classroomnotes 28/Jun/2023

NAT Gateway

  • NAT is used to provide internet access to private subnets
  • AWS provides NAT by
    • NAT instance
    • NAT Gateway
  • NAT Gateway requires an elastic ip and it needs to be present in public subnet
  • Create a vpc with one public and private subnet
  • ensure you have ec2 instances in public and private subnet
  • NOw create a NAT gateway in public subnet

  • Wait till the state is Available for NAT Gateway
  • Now modify private route table to forward packets to NAT Gateway to access internet

VPC Peering

  • AWS VPC Peering allows private communicatiob between two vpc’s belonging to any regions or any accounts
  • The destination vpc should approve the peering request then in two vpc’s peering connection objects will be created.
  • Create a peering connection from one vpc






  • Now since there is infra to communicate, now modify route tables to forward packets to each other

  • Now ping from one ec2 to other using private ip
  • AWS VPC Peering workflow
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%%