Aws Csa VPC R 1.0
Aws Csa VPC R 1.0
June 2015
What is Amazon VPC..?
6/26/2015 2
Why to use Amazon VPC..?
3
Key Concept…
AWS cloud
• VPC & Subnet
Region
• Routing Table
Virtual Private Cloud
Internet gateway
• Internet Gateway
– Handle Internet-
routable traffic
– Perform network Router
address translation
Subnet
• NAT Instance
Subnet
NAT
• Network ACLs
security group
security group
• Security Group
6/26/2015 4
Key Concept…
• Internet Gateway
– Horizontally scaled,
redundant, and highly
available VPC component
– IG purposes
• Perform network address
translation
• Provide a target in VPC route
tables for Internet-routable
traffic
– One VPC one IG
• NAT Instance
– Provide internet access to
private subnet instances
– Primary role - port address
translation (PAT)
– Launch in public subnet
6/26/2015 5
LAB – Amazon VPC
• Create Amazon VPC with PUBLIC & PRIVATE subnet
• Launch NAT instance / Attach Internet Gateway
• Launch Windows instance in PUBLIC subnet
• Launch Windows instance in PRIVATE subnet
• Access the instance in PUBLIC subnet remotely
VPC Peering
Region
VPC peering
7
VPC Peering
8
Extending On-Premise Network to Cloud
9
Extending On-Premise Network to Cloud
• https://docs.openvpn.net/how-to-
tutorialsguides/virtual-
platforms/amazon-ec2-appliance-ami-
quick-start-guide/
10
Single Instance NAT Failure – Solution ?
http://aws.amazon.com/articles/2781451301784570
11
Note Again
• Internet Gateway
– Provides target in route table for Internet routable traffic
– Performs NAT for instances that have PUBLIC IP (from PUBLIC IP to PRIVATE IP)
• To enable access to or from the Internet for instances in a VPC subnet, you
must attach an Internet gateway to your VPC, ensure that your subnet's
route table points to the Internet gateway, ensure that instances in your
subnet have public IP addresses or Elastic IP addresses, and ensure that your
network access control and security group rules allow the relevant traffic to
flow to and from your instance.
6/26/2015 12
Network ACLs
6/26/2015 13
Comparing Security Group and ACLs
LAB – Amazon VPC
• Create two Amazon VPC with single private subnet
• Launch Windows instance in PRIVATE subnet of both VPC
• Create VPC Peering connection
• Access Windows instance of one VPC from another VPC
New Services
• VPC Endpoints
– Secure connection to S3 within VPC
– Easy to configure
– Highly reliable
– Does not require a gateway or NAT instances
– https://aws.amazon.com/blogs/aws/new-vpc-endpoint-for-amazon-s3/
6/26/2015 16
Cost Aspects
• VPN Connection
• $0.05 per hour
17
VPC Limits
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html
18
Best Practices
• Selecting right VPC Architecture design
19
End of Module
Q&A