My AWS study notes
Amazon Vitual Private Cloud (Amazon VPC)
A virtual private cloud (VPC) is a virtual network dedicated to your AWS account. It is logically isolated from other virtual networks in the AWS Cloud.
A VPC spans all the Availability Zones in the region.
Amazon VPC consists of following components :
- Subnets
- Route Tables
- Dynamic Host Configuration Protocol (DHCP) option sets
- Security groups
- Network Access Control Lists (ACLs)
An Amazon VPC has the following optional components:
- Internet Gateways (IGWs)
- Elastic IP (EIP) addresses
- Elsatic Network Interfaces (ENIs)
- Endpoints
- Peering
- Network Address Translation (NATs) instances and NAT gateways
- Virutal Private Gateway (VPG), Customer Gateways (CGWs), and Virtual Private Networks (VPNs)
1. Subnets
- A subnet is a segment of an Amazon VPC's IP address range where you can launch Amazon EC2 instances, Amazon Relational Database Service (Amazon RDS) databases, and other AWS resources.
- CIDR blocks define subnets (10.0.1.0/24 and 192.168.0.0/24). The smallest subnet that you can create is a /28 (16 IP addresses).
- AWS reserves first four and last ip addresses of every subnet for internal networking purposes.
- You can add one or more subnets in each availability zone. Subnets reside within one availability zone and can not span across zones.
- You can however have multiple subnets in one availability zone.
- Subnests can be classified as Public,Private or VPN only.
Public subnet
- A public subnet is one in which the associated route table directs the subnet's traffic to the Amazon VPC's IGW(Internate Gateway)
Private subnet
- A private subnet is one in which the associated route table does not direct the subnet's traffic to the Amazon's VPC's IGW.
VPN only subnet
- A VPN-only subnet is one in which the associated route table directs the subnet's traffic to the Amazon VPC's VPG and does not have a route to IGW.
Regardless of the type of subnet, the intenal IP address range of the subnet is always private(that is, non-routable on the Intenate).
Default Amazon VPCs contain one public subnet in every Availability Zone within the region with a netmask of /20.
Comments
Post a Comment