VPC Overview Flashcards
Can Security Groups span subnets?
Yes
Does one subnet have to stay in one availability zone?
Yes
One Subnet = One AZ
Subnets cannot cross availability zones
What RFC 1918 adresses ranges can be used?
- 0.0.0 /8 (10.0.0.0 - 10.255.255.255.)
- 16.0.0 /12 (172.16.0.0 - 172.31.255.255)
- 168.0.0 /16 (192.168.0.0 - 192.168.255.255)
How many VPC’s can you have in a region?
Soft limit of 5
Get more by contacting AWS
How many internet gateways can you have in a VPC?
one
Can security groups span availability zones?
yes
Can security groups span subnets?
yes
Default VPC Overview
all subnets have route to internet
every EC2 instance has a public and private IP address
VPC Peering Overview
Peer with a direct route with private IP addresses
Instances act as if on the same private network
Can peer with other AWS accounts and other VPC’s in same account
Peering always in hub-spoke configuration.
Never have transitive peering
List 5 Main Components of a VPC
Internet Gateways (or Virtual Private Gateways) Route Tables NACLs Subnets Security Groups
Are Security Groups Stateful?
Yes
Are NACLs Stateless?
Yes
Compare stateful vs stateless
Open port 80 on SG does outbound automatically
Open port 80 on NACL, do outbound manually
When you create a VPC, what things are automatically created?
Default Route Table
Default NACL
Default VPC Security Group
no IGW
no Subnets
Steps in creating VPC
Lecture “build your own custom VPC”
- Create VPC
- Create Subnets (assign subnet to AZ)
- Create internet Gateway, Attach it
- Create new Route Table
- Give new Route Table internet access by adding route (0.0.0.0/0 -> IGW)
- Associate Route Table with subnets
- Enable auto-assign public IP address for public subnets
(by default new subnets are associated with main route table, so for security, you don’t want main route table to have internet access. Create new route table for the VPC and associate the subnets with it)