Skip to content

Instantly share code, notes, and snippets.

@pfcodes
Last active July 20, 2021 20:47
Show Gist options
  • Select an option

  • Save pfcodes/1fb229d7b5e32ae827ea3b6a670a2c66 to your computer and use it in GitHub Desktop.

Select an option

Save pfcodes/1fb229d7b5e32ae827ea3b6a670a2c66 to your computer and use it in GitHub Desktop.
AWS VPC and Subnet notes

General Info

  • A NAT is required for the Lambda to access the internet.
  • Connect to an AWS Aurora Serverless database using Cloud9 (or an SSH tunnel through an additional EC2 instance).

Subnets

The public subnet has the route table with the internet gateway (igw) The private subnet has the rotue table with the nat.

  • To create a new subnet, increment the third section. (10.0.x.0/24)
  • Application Load Balancers go in public subnets.
  • Lambda functions go in private subnets.
  • When creating a new subnet manually, make sure to it's route table association matches the relevant route table (public/private).

Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment