DEV Community

Sanket Barapatre
Sanket Barapatre

Posted on

Some AWS Networking concepts

  1. VPC is like a container for holding multiple resources together bound by a private CIDR. Can be cross AZs.

  2. Subnet is sub-part of VPC for isolationg reources within VPC, like EC2 instance or DB.

  3. VPC can have one CIDR, and each of its subnet use a part of it and all should be non overlapping.

  4. VPC has security groups as firewall (which require config only for one way traffic, reply traffic is already configured) and route tables to connect to NAT, IG, or other VPC or even intra-traffic. Security Grp rules evaluated ascending first.

  5. Subnet has its own route table, which inherits from VPC (basic one) if not specified, it has to have at-least intra-traffic by default. Subnet also have Network Access Control List as its own firewall where you have to configure for reply traffic as well unline VPC's security group. NACL rules are evaluated from ascending. Hence always add local traffic as first.

  6. NAT- Network Address Translation, used when connecting VPC to outside world. It converts the internal IP address to public IP address.

  7. Elastic IP- when we reboot an instance the public IP changes, hence we use Elastic IP to configure it to a static IP address.

  8. IG- internet gateway to allow access to Internet. Has to configure same in route tables.

  9. VPC peering- create a connection for connecting VPC -to-VPC.

  10. NAT instance- a ec2 instance which is in public subnet and connected to a private subnet as well as NAT gateway for allowing private subnet to access outside world. We use similar setup for bastion host, or jump host to connect to private subnet DB.

RPC 1918 specification recommends us to use 10.0.0.0 or 172.168.0.0 similar CIDR for local CIDR when attaching to VPC.

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay