In this session, we will walk through the fundamentals of Amazon Virtual Private Cloud (VPC). First, we will cover build-out and design fundamentals for VPC, including picking your IP space, subnetting, routing, security, NAT, and much more. We will then transition into different approaches and use cases for optionally connecting your VPC to your physical data center with VPN or AWS Direct Connect. This mid-level architecture discussion is aimed at architects, network administrators, and technology decision-makers interested in understanding the building blocks AWS makes available with VPC and how you can connect this with your offices and current data center footprint.
4. What to expect from the session
• Get familiar with VPC concepts
• Walk through a basic VPC setup
• Learn about the ways you can tailor
your virtual network to meet your
needs
6. Creating an Internet-connected VPC: Steps
Choosing an
address range
Setting up subnets
in Availability Zones
Creating a route to
the Internet
Authorizing traffic
to/from the VPC
11. VPC subnets and Availability Zones
172.31.0.0/16
Availability Zone Availability Zone Availability Zone
VPC subnet VPC subnet VPC subnet
172.31.0.0/24 172.31.1.0/24 172.31.2.0/24
eu-west-1a eu-west-1b eu-west-1c
12. VPC subnet recommendations
• /16 VPC (64K addresses)
• /24 subnets (251 addresses)
• One subnet per Availability Zone
14. Routing in your VPC
• Route tables contain rules for which
packets go where
• Your VPC has a default route table
• But you can assign different route tables
to different subnets
21. Security groups example: Web servers
In English: Hosts in this group are reachable
from the Internet on port 80 (HTTP)
22. Security groups example: Backends
In English: Only instances in the MyWebServers
Security Group can reach instances in this
Security Group
23. Security groups in VPC: Additional notes
• Follow the “principle of least privilege”
• VPC allows creation of egress as well as ingress
security group rules
• Many application architectures lend themselves to a 1:1
relationship between security groups (who can reach
me) and IAM roles (what I can do)
34. Establish a VPC peering: Create route
172.31.0.0/16 10.55.0.0/16Step 1
Initiate peering request
Step 2
Accept peering request
Step 3
Create routes
In English: Traffic destined for the
peered VPC should go to the peering
38. VPN and AWS Direct Connect
• Both allow secure connections
between your network and your VPC
• VPN is a pair of iPSec tunnels over
the Internet
• DirectConnect is a dedicated line with
lower per-GB data transfer rates
• For highest availability: Use both
VPN
AWS Direct Connect
40. VPC and the rest of AWS
AWS Services in
Your VPC
VPC Endpoints for
Amazon S3
DNS in-VPC with
Amazon Route 53
Logging VPC Traffic
with VPC Flow Logs
44. Best practices for in-VPC AWS services
• Many AWS services support running in-VPC.
• Use security groups for least-privilege network access.
• For best availability, use multiple Availability Zones.
Examples:
• Multi-zone RDS deployments
• Use a zonal mount point for EFS access
48. AWS VPC endpoints for Amazon S3
S3 Bucket
Route S3-bound
traffic to the VPCE
49. IAM policy for VPC endpoints
S3 Bucket
IAM Policy at VPC Endpoint:
Restrict actions of VPC in S3
IAM Policy at S3 Bucket:
Make accessible from
VPC Endpoint only