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
    Preview
    Preview
  • Wait till the state is Available for NAT Gateway
    Preview
  • Now modify private route table to forward packets to NAT Gateway to access internet
    Preview
    Preview

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
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
    Preview
  • Now since there is infra to communicate, now modify route tables to forward packets to each other
    Preview
    Preview
  • Now ping from one ec2 to other using private ip
  • Preview
  • AWS VPC Peering workflow
    Preview

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a 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

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube