Subnet
Subnetsare tied to specificAZ- Multiple
Subnetscan be provisioned in oneAZ - One
Subnetcan not be provisioned inmulti-AZ - Two types of
Subnets Public Subnetuse to putLoad balancerPrivate Subnetuse to putApplicationsandDB Servers- Every time create a
Subnet, loose 5IPaddress. - First 4 and the last one
- First one for
Network Address - Second one for
VPC Router, reserved by AWS - Third one for
AWS Provided DNS, reserved by AWS - Fourth one for future use, reserved by AWS
- Last one for
Broadcast Address, although AWS does not supportBroadcast - Exercise
- Can
/27handle 29IP Address?- It has
2^(32-27)= 32IP Address - Since 5 IP address is not usable, we can use
32-5= 27IP Address - So
/27can not handle more than 27IP Address - To handle 29
IP Addresswe might need at least/26i.e.2^(32-26)= 64IP Address - In this case we can use
64-5= 59IP Address, that matches the requirements
- It has
- We can enable
Auto Assign Public IPv4 Addressfeatures, so any instance being created within the subnet, will have a public IP. - In
Custom VPC, the featureAuto Assign Public IPv4 Addressisdisabledby default, whereas inDefault VPCit isenabledby default. - To ensure the
Public Subnetcan access thePrivate Subnet, need to ensure, theSGhave the required rules defined to allow traffic - Since
internetandintranetis corresponding to separate AZ, need separate AZ for them