SlideShare una empresa de Scribd logo
1 de 128
Descargar para leer sin conexión
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS re:INVENT
F ROM ONE TO MANY: E VOL VING VPC DE SIG N
A n d r o s k i S p i c e r : S o l u t i o n s A r c h i t e c t
A R C 3 0 4
N o v e m b e r 2 8 , 2 0 1 7
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SIMPLICITY
A M A Z O N V P C A R C H I T E C T U R E
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Subnet
I TRUST YOU’VE HEARD OF
Route Table
Elastic Network Interface
Amazon VPC
Internet Gateway
Virtual Private
Gateway
VPN Connection
Network ACL
Security group
Enhanced Networking
VPC Peering
AWS Direct Connect
Availability Zone
VPC Endpoints
Amazon VPC
Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
RELATED SESSIONS
NET201—Creating Your Virtual Data Center: VPC
Fundamentals and Connectivity Options
NET301—Extending Datacenters to the Cloud:
Connectivity Options and Considerations for Hybrid
Environments
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ONE VPC ….
Subnet
Network ACL
Availability Zone - A
Region
Subnet
Network ACL
Availability Zone - B
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
us-east-2
VPC
VPC
VPC
NA
HQ
Chicago
DX
London
DX
ap-northeast-1
VPC
VPC
VPC
VPC
EU
HQ
us-west-2
VPC
VPC
VPC
eu-east-2
VPC
VPC
VPC
VPC
VPC
VPC
Tokyo
DX
Amazon Public
Services
GLOBALLY
PRIVATE VIF
PUBLIC VIF
Shared
Services
VPC
Shared
Services
VPC
Shared
Services
VPC
DX GATEWAY
T O
MANY
APAC
HQ
INTER REGION
VPC PEER
VPC PEER
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC DESIGN
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC DESIGN
/16
Choose a CIDR
• CIDR fixed on VPC
creation
• /16 down to /28
• Should You Go Big?
Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC IPv4 SPACE DESIGN
• Don’t overlap IP space
• Consider connectivity to corporate networks
• Plan for expansion to additional Availability Zones or
regions
Subnet
Availability Zone A
IPv4
Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC IPv6 SPACE DESIGN
• Optionally enable IPv6 on VPC
• /56 of Amazon’s Global Unicast Address (GUA) per VPC
• /64 CIDR block per subnet
• IPv6 completely independent from IPv4
• Enabled per subnet or per instance (per ENI)
• Supported by Security Groups, Route Tables, NACLs, VPC
Peering, IGW, DX, Flow Logs, and DNS Resolution
Subnet
Availability Zone A
IPv6IPv4
Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC ID : abc-de-fg-7
Availability Zone A
Subnet
Secondary CIDR :
10.2.0.0/16
Secondary CIDR :
10.3.0.0/16
Secondary CIDR :
10.4.0.0/16
Secondary CIDR :
10.5.0.0/16
Primary CIDR :
10.1.0.0/28
VPC RESIZING
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC ID : abc-de-fg-7
Secondary CIDR :
10.2.0.0/16
Secondary CIDR :
10.3.0.0/16
Secondary CIDR :
10.4.0.0/16
Secondary CIDR :
10.5.0.0/16
Primary CIDR :
10.1.0.0/28
Route Table
Main Route Table
Destination Target
10.1.0.0/28 Local
10.2.0.0/16 Local
10.3.0.0/16 Local
10.4.0.0/16 Local
10.5.0.0/16 Local
US-WEST-2
INTER CIDR
ROUTING
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC ID : abc-de-fg-7
Secondary CIDR :
10.2.0.0/16
Secondary CIDR :
10.3.0.0/16
Secondary CIDR :
10.4.0.0/16
Secondary CIDR :
10.5.0.0/16
Primary CIDR :
10.1.0.0/28
Route Table
US-WEST-2
CONSIDER!
• CIDR Block/s cannot overlap
• Existing CIDR Blocks cannot
change
• CIDR block must not be the same
or larger than the CIDR range of a
route in any of the VPC route
tables
Primary CIDR
10.3.0.0/16
VPC
Peering
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC ID : abc-de-fg-7
Secondary CIDR :
10.2.0.0/16
Secondary CIDR :
10.4.0.0/16
Primary CIDR :
10.1.0.0/28
Route Table
US-WEST-2
CONSIDER!
• Secondary CIDR Blocks can be
added and removed
• Primary CIDR Block cannot be
resized or removed
Cannot Change!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC ID : abc-de-fg-7
Secondary CIDR :
10.2.0.0/16
Secondary CIDR :
10.4.0.0/16
Primary CIDR :
10.1.0.0/28
Route Table
US-WEST-2
CONSIDER!
• Primary CIDR Range Dictates which
other RFC1918 Ranges can be used
• For example, if you use 10.0.0.0/8,
then your additional CIDRs must be
from the RFC1918 10. space
Secondary CIDR :
192.168.0.0/16
Secondary CIDR :
172.16.0.0/16
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SUBNET CREATION
Availability Zone A
• Even distribution of IP
space across AZs
• Use at least 2 AZs
• Subnets are AZ specific
• How big? How many?
Subnet
Availability Zone B
Subnet
Availability Zone C
Subnet
/16
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SUBNET CREATION
Availability Zone A
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet Subnet Subnet Subnet Subnet Subnet
Subnet Subnet Subnet Subnet Subnet
Subnet Subnet Subnet Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
Subnet
/16
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC SUBNET DESIGN
• T r a d i t i o n a l s w i t c h i n g l i m i t a t i o n s d o n o t a p p l y
• C o n s i d e r l a r g e , m i x e d - u s e s u b n e t s
• U s e s e c u r i t y g r o u p s t o e n f o r c e i s o l a t i o n
• U s e t a g s f o r g r o u p i n g r e s o u r c e s
• U s e s u b n e t s a s c o n t a i n e r s f o r r o u t i n g p o l i c y
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IPv4 VPC SUBNET DESIGN
/16
Availability Zone A
Hybrid Subnet
Public subnet
Private subnet
Availability Zone B
Public subnet
Private subnet
Availability Zone C
Public subnet
Private subnet
/22 /22 /22
/20
/20
/20
/20
/20
/20
4091 IPs
1019 IPs
4091 IPs
Hybrid Subnet Hybrid Subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WHAT ABOUT IPV6 DESIGN
Availability Zone A
Public subnet
Private subnet
Availability Zone B
Public subnet
Private subnet
Availability Zone C
Public subnet
Private subnet
/64
/54
/64 /64
/64 /64 /64
18 QUINTILLION
18 QUINTILLION
18 SEXTILLION
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LOCAL ROUTING POLICY
Availability Zone A
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Main Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 Local
Primary VPC CIDR 10.1.0.0/16
Availability Zone B
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Availability Zone B
Public subnet
Private subnet
.1
.1
SECONDARY CIDR 10.2.0.0/16
US-WEST-2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Main Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 Local
0.0.0.0/0 igw-a1234567
Primary VPC CIDR 10.1.0.0/16
Availability Zone B
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Availability Zone B
Public subnet
Private subnet
.1
.1
SECONDARY CIDR 10.2.0.0/16
US-WEST-2
INTERNET
AMAZON
PUBLIC SERVICES
INTERNET GATEWAY
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Private subnet
Public subnet
Private subnet
.1
.1
.1
VPC CIDR 2001:db8:1234:1a00::/56
Availability Zone B
Private subnet
Public subnet
Private subnet
.1
.1
.1
US-WEST-2
INTERNET
AMAZON
PUBLIC SERVICESPublic Route Table
Destination Target
10.1.0.0/16 Local
2001:db8:1234:1a00::/56 Local
0.0.0.0/0 IGW
::/0 igw-a1234567
INTERNET GATEWAY Global Unicast Address (GUA)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Private subnet
Public subnet
Private subnet
.1
.1
.1
VPC CIDR 2001:db8:1234:1a00::/56
Availability Zone B
Private subnet
Public subnet
Private subnet
.1
.1
.1
US-WEST-2
INTERNET
AMAZON
PUBLIC SERVICES
Public Route Table
Destination Target
10.1.0.0/16 Local
2001:db8:1234:1a00::/56 Local
0.0.0.0/0 IGW
::/0 eigw-0ab0
INTERNET GATEWAY
Global Unicast Address (GUA)
EGRESS ONLY
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Main Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 Local
172.16.0.0/16 vgw-a1234567
Primary VPC CIDR 10.1.0.0/16
Availability Zone B
Hybrid subnet
Public subnet
Private subnet
.1
.1
.1
Availability Zone B
Public subnet
Private subnet
.1
.1
SECONDARY CIDR 10.2.0.0/16
US-WEST-2
NORTHER VIRGINIA
CORPORATE
DATA CENTER
REMOTE OFFICE BUILDING
VIRTUAL GATEWAY (VGW)
172.16.0.0/16
AMAZON
DIRECT CONNECT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ROUTING IN THE HYBRID SUBNET
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 ???
Corp CIDR VGW
Private subnet
CORPORATE DATA CENTER
Availability Zone A
Public subnet
Private subnet
Hybrid subnetHybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ROUTING IN THE HYBRID SUBNET
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT instance
Corp CIDR VGW
Private subnet
CORPORATE DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT INSTANCE
Hybrid subnet Hybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ROUTING IN THE HYBRID SUBNET
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT instance
Corp CIDR VGW
Private subnet
CORPORATE DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT INSTANCE
NAT INSTANCE
Hybrid subnet Hybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DESIGNING SCALABLE NAT
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EVOLVING DESIGN REQUIREMENTS
• Public subnets for resources reachable from Internet
• Hybrid subnets with egress-only access to public network
• Scalable, highly available NAT
• One AWS account
• One VPC
• One region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ROUTING IN THE HYBRID SUBNET
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT instance
Corp CIDR VGW
Private subnet
CORPORATE DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT INSTANCE
NAT INSTANCE
Hybrid subnet Hybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DEPLOY A NAT GATEWAY
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT-GW-1
Corp CIDR VGW
Private subnet
CORPORATE
DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT GATEWAY
• Still need IGW
• Separate subnets
• Requires EIP
• AZ specific
• Burst to 10 Gbps
Hybrid subnet Hybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Hybrid subnet
ROUTING IN THE PRIVATE SUBNET
Availability Zone A
Hybrid subnet
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT-GW-2
Corp CIDR VGW
Private subnet
CORPORATE DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT GATEWAY
NAT GATEWAY
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ROUTING IN THE PRIVATE SUBNET
Availability Zone A
Public subnet
Private Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT-GW-2
Corp CIDR VGW
Private subnet
CORPORTAE DATA CENTER
Availability Zone A
Public subnet
Private subnet
INTERNET
GATEWAY
INTERNET
NAT GATEWAY
NAT GATEWAY
Hybrid subnet Hybrid subnet
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NAT GATEWAY: SECURING ACCESS
1
NAT Gateway ENI:
Network ACL
Public subnet
NAT
Gateway
Amazon Network ACLs still apply
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NAT GATEWAY: SECURING ACCESS
Use routing policy to
control access to NAT
Gateway
Private subnet
Public subnet
Private subnet
NAT Enabled
no-NAT
no-NAT Private Route Table
Destination Target
10.1.0.0/16 Local
NAT Enabled Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0/0 NAT Gateway
NAT
Gateway
2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NAT GATEWAY: SECURING ACCESS
Outbound Rules
Type Protocol Port Range Destination
All traffic All 0 - 65535 0.0.0.0/0
Use security groups to restrict
outbound access for instances
Default VPC security group:
3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NAT GATEWAY: SECURING ACCESS
Outbound Rules
Type Protocol Port Range Destination
All traffic All 0 - 65535 10.2.0.0/16
Outbound Rules
Type Protocol Port Range Destination
All traffic All 0 - 65535 0.0.0.0/0
Use security groups to restrict
outbound access for instances
Default VPC security group:
NAT Enabled VPC security group:
3
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NAT GATEWAY PROs & CONs
• Drop in replacement for NAT instance
• Fully managed
• Highly available and fault tolerant
• Scalable to 10 Gbps bursts per gateway
• Supports VPC Flow Logs
• No higher level functions like IPS, UTM, URL
Filtering, packet inspection, etc.
• Cannot associate security group to gateway
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
TOO MANY APPS INTERACT WITH
WHAT ABOUT INGRESS CONTROL
Customer
network
Amazon S3 Amazon DynamoDB Amazon Kinesis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INGRESS CONTROL
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON ELASTIC LOAD BALANCING
Elastic Load Balancing supports three types of load balancers:
Application Load Balancer
Network Load Balancer
Classic Load Balancer
Layer 7 HTTP/HTTPS
WS/WSS
Layer 4 TCP
Layer 4 TCP , SSL,
HTTP,HTTPS
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON NETWORK LOAD BALANCER (NLB)
Network Load Balancer
• Handle volatile traffic patterns
• Designed to load balance millions of requests per second
• Offers extremely low latencies for latency-sensitive applications
• Preserve Source IP address
• Static IP support
• Elastic IP support
• Supports Long Lived TCP Sessions
• Zonality
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Target Group A
Availability Zone A
PRIVATE SUBNET
PUBLIC SUBNET
Availability Zone B
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target Group A
AMAZON NETWORK LOAD BALANCER (NLB)
Instance ID Instance ID Instance ID Instance ID
IP Address IP Address IP Address IP Address
EIPEIP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Target Group A
Availability Zone A
PRIVATE SUBNET
PUBLIC SUBNET
Availability Zone B
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target Group A
AMAZON NETWORK LOAD BALANCER (NLB)
Instance ID Instance ID Instance ID Instance ID
IP Address IP Address IP Address IP Address
EIPEIP
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Target Group A
Availability Zone A
PRIVATE SUBNET
PUBLIC SUBNET
Availability Zone B
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target Group B
AMAZON NETWORK LOAD BALANCER (NLB)
Target Group
Instance ID Instance ID IP Address IP Address
Listener
Rule
TCP
443
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Target Group A
Availability Zone A
PRIVATE SUBNET
PUBLIC SUBNET
Availability Zone B
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target Group A
AMAZON NETWORK LOAD BALANCER (NLB)
Task Task
Target Groups are not
limited to Amazon EC2
OR
Your VPC/s
TaskTask
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Target Group A
Availability Zone A
PRIVATE SUBNET
PUBLIC SUBNET
Availability Zone B
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target Group A
AMAZON NETWORK LOAD BALANCER (NLB)
10.1.1.45 10.1.1.47
Customer
network
10.20.2.150
10.20.2.14
10.20.2.15
Target Group A
10.1.1.45 10.1.1.45
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PRIVATE SUBNET
PUBLIC SUBNET
PRIVATE SUBNET
PUBLIC SUBNET
55.70.200.20 57.10.40.20
Target
Group
10.1.1.45 10.1.1.47 10.1.2.45 10.1.2.45
Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0 eni-7a795854
Amazon NLB
SQUID SQUID SQUID SQUID
10.1.3.0/24
HYBRID SUBNET
Internal
Apps
Internal
Apps
Internal
Apps
Internal
Apps
Internal
Apps
Internal
AppsSource Destination Check
Disabled by Default
IGW
INTERNET
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EGRESS CONTROL
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EVOLVING DESIGN REQUIREMENTS
• VPN connectivity to private-only VPC
• No egress in the VPC to public networks
• Private IP access to Amazon S3
• Content-specific access controls
• One AWS account
• One VPC
• One region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
YOU REALLY DON’T WANT TO DO THIS
Private subnet Private subnet
Virtual Private
Gateway
VPN
connection
Intranet
app
Intranet
app
Amazon
S3
Internet
Customer
border router
Customer VPN
Internet
Customer
network
Amazon
DynamoDB
Availability Zone A Availability Zone B
Amazon Kinesis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Oregon (us-west-2) Region
CIDR : 10.0.0.0/16
Availability Zone - A
Private Subnet: 10.0.1.0/24
VPC Endpoint Network Interface
Private IP : 10.0.1.7
EC2
Private IP 10.0.1.12
Availability Zone - B
Private Subnet: 10.0.2.0/24
Private IP :10.0.2.120 VPC Endpoint Network Interface
Private IP : 10.0.2.7
Amazon S3Amazon DynamoDB
VPN
connection
Customer
network
Amazon Kinesis
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON VPC ENDPOINTS
Interface Gateway
Virtual Devices Horizontally Scaled Redundant & Highly Available
VPC Components that Provide
Access to AWS Services
N E W
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY VPC ENDPOINT
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY ENDPOINTS
Private subnet
Public subnet
NAT
Gateway
Amazon
S3
Amazon
DynamoDB
Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0 NAT Gateway
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY ENDPOINTS
Target for a specified route in your route table
Route Table
Destination Target
10.1.0.0/16 Local
Corp CIDR VGW
Prefix List for S3 us-west-2 VPC-Endpoint
Prefix List for DynamoDB-
us-west-2
VPC-Endpoint
Amazon S3
Amazon DynamoDB
EC2 EC2 EC2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY ENDPOINTS
Target for a specified route in your route table
Route Table
Destination Target
10.1.0.0/16 Local
Corp CIDR VGW
Prefix List for S3 us-west-2 VPC-Endpoint
Prefix List for DynamoDB-
us-west-2
VPC-Endpoint
Amazon S3
Amazon DynamoDB
aws ec2 create-vpc-endpoint
--vpc-id vpc-40f18d25
--service-name com.amazonaws.us-west-2.s3
--route-table-ids rtb-2ae6a24f rtb-61c78704
aws ec2 create-vpc-endpoint
--vpc-id vpc-40f18d25
--service-name com.amazonaws.us-west-2.dynamodb
aws ec2 describe-vpc-endpoint-services
{ "ServiceNames": [
"com.amazonaws.us-east-1.s3",
"com.amazonaws.us-east-1.dynamodb"
] }
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY ENDPOINTS
Private subnet
Route Table
Destination Target
10.1.0.0/16 Local
0.0.0.0 NAT Gateway
Prefix List for S3 us-west-2 VPCE
Public subnet
NAT
Gateway
Amazon
S3
Amazon
DynamoDB
aws ec2 describe-prefix-lists
PREFIXLISTS pl-68a54001 com.amazonaws.us-west-2.s3
CIDRS 54.231.160.0/19
CIDRS 52.218.128.0/18
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GATEWAY ENDPOINT SECURITY
… and use them in your outbound security group rules!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CONTROLLING ACCESS S3 VIA IAM POLICY
Private subnet
AWS Identity & Access
Management (IAM) policy on VPCE:
{
"Statement": [
{
"Sid": "vpce-restrict-to-backup-bucket",
"Principal": "*",
"Action": [
"s3:GetObject",
"s3:PutObject”
],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::backups-reinvent",
"arn:aws:s3:::backups-reinvent/*"]
}
]
}
Backups bucket?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
{
"Statement": [
{
"Sid": "bucket-restrict-to-specific-vpce",
"Principal": "*",
"Action": "s3:*",
"Effect": "Deny",
"Resource": ["arn:aws:s3:::backups-reinvent",
"arn:aws:s3:::backups-reinvent/*"],
"Condition": {
"StringNotEquals": {
"aws:sourceVpce": "vpce-bc42a4e5”
}
}
}
]
}
CONTROLLING ACCESS VIA VPC ENDPOINT
Private subnet
S3 bucket policy:
From
vpce-bc42a4e5?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CONTROLLING ACCESS DYNAMODB
Private subnet
AWS Identity & Access Management (IAM) policy on VPCE:
Accessing DynamoDB Through
a Specific VPCE Access
{ "Version": "2012-10-17",
"Statement": [
{ "Sid": "AccessFromSpecificEndpoint",
"Action": "dynamodb:*",
"Effect": "Deny",
"Resource": "arn:aws:dynamodb:region:account-id:table/*",
"Condition":
{ "StringNotEquals" : { "aws:sourceVpce": "vpce-11aa22bb" } }
}
]
}
VPCE : vpce-11aa22bb ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
{ "Statement": [ {
"Sid": "AccessToSpecificTable",
"Principal": "*",
"Action": [
"dynamodb:Batch*",
"dynamodb:Delete*",
"dynamodb:DescribeTable",
"dynamodb:GetItem",
"dynamodb:PutItem",
"dynamodb:Update*"
],
"Effect": "Allow",
"Resource": "arn:aws:dynamodb:us-east1:123456789012:table/StockTable"
}
]
}
CONTROLLING ACCESS DYNAMODB
Private subnet
VPCE Policy Granting Access to a Specific DDB Table
Table : StockTable ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CONTROLLING VPC ACCESS TO S3
Recap on security layers:
1. Route table association
2. VPCE policy
3. Bucket policy
4. Security groups with prefix list
Private subnet
1.
2.
3.
4.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INTERFACE VPC ENDPOINT
N E W
P O W E R E D B Y A M A Z O N P R I V A T E L I N K S
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
INTERFACE VPC ENDPOINTS
A N E L A S T I C N E T W O R K I N T E R F A C E W I T H A
P R I V A T E I P A D D R E S S T H A T S E R V E S A S A N E N T R Y
P O I N T F O R T R A F F I C D E S T I N E D T O A S U P P O R T E D
A W S S E R V I C E
AWS Public Services
Amazon EC2 (API) & EC2 SSM
Amazon Elastic Load Balancing
Amazon Kinesis
Amazon Service Catalog
1 0 . 1 . 1 0 . 5 0
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
HOW IT WORKS AWS Public Services
Amazon EC2 (API) & EC2 SSM
Amazon Kinesis
Amazon Service Catalog
1 0 . 1 . 1 0 . 5 0
S U B N E T - 1 0 . 1 . 1 0 . 4 5
E C 2 F L E E T
H O T I N G A P P L I C A T I O N
Availability Zone A
M A K E S A R E Q U E S T
T O E L B E N D P O I N T
N A M E
k i n e s i s . u s - e a s t -
1 . a m a z o n a w s . c o m
R E S O L V E S T O T H E
P R I V A T E I P O F T H E E N I
Amazon Elastic Load Balancing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I NTERFACE V PC ENDPOI NTS
NO ROUTES IN YOUR ROUTE TABLE
NO IAM POLICY FOR ENDPOINT
NOT ACCESSIBLE VIA (VGW) VPN
ONE SUBNET PER AZ PER I-ENDPOINT
SUPPORTS TCP ONLY
aws ec2 create-vpc-endpoint
--vpc-id vpc-ec43eb89
--vpc-endpoint-type Interface
--service-name com.amazonaws.us-east-1.elasticloadbalancing
--subnet-id subnet-abababab subnet-catbatratsat
--security-group-id sg-1a2b3c4d
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
C R E A T I N G
I N T E R F A C E V P C
E N D P O I N T S
aws ec2 create-vpc-endpoint
--vpc-id vpc-ec43eb89
--vpc-endpoint-type Interface
--service-name com.amazonaws.us-east-1.elasticloadbalancing
--subnet-id subnet-abababab subnet-catbatratsat
--security-group-id sg-1a2b3c4d
S u b n e t
Availability Zone A
S u b n e t
Availability Zone B
S u b n e t
Availability Zone C
v p c - i d v p c - e c 4 3 e b 8 9
Amazon EC2 (API) & EC2 SSMAmazon Kinesis AWS Service CatalogElastic Load Balancing
aws ec2 describe-vpc-endpoints
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ACCESS
T HR OUGH
I NT ER FAC E V PC
ENDPOI NTS
I F C R E A T E D I N O R E G O N ,
W H I C H H A S T H R E E A Z S
ENDPOINT-SPECIFIC REGIONAL DNS HOSTNAME
vpce-0fe5b17a0707d6abc-29p5708s.kinesis.us-west-2.vpce.amazonaws.com
ENDPOINT-SPECIFIC ZONAL DNS HOSTNAME
vpce-0fe5b17a0707d6abc-29p5708s-us-west-2a.kinesis.us-west-2.vpce.amazonaws.com
vpce-0fe5b17a0707d6abc-29p5708s-us-west-2b.kinesis.us-west-2.vpce.amazonaws.com
vpce-0fe5b17a0707d6abc-29p5708s-us-west-2c.kinesis.us-west-2.vpce.amazonaws.com
DEFAULT PUBLIC DNS HOSTNAME
kinesis.us-west-2.amazonaws.com
PRIVATE IP ADDRESS OF THE ENDPOINT NETWORK INTERFACE
10.1.10.50 10.1.20.50 10.1.30.50
SUBMIT REQUESTS TO THE SUPPORTED SERVICE
VIA AN ENDPOINT URL
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Oregon (us-west-2) Region
CIDR : 10.0.0.0/16
Availability Zone - A
Private Subnet: 10.0.1.0/24
Private IP : 10.0.1.7
Amazon Kinesis
EC2
Private IP :
10.0.1.12
Availability Zone - B
Private Subnet: 10.0.2.0/24
10.0.2.7
Private IP :
10.0.2.120
VPCE-
2222.KINESIS.AMAZON.COM
PRIVATE CONNECTION OVER
AWS NETWORK
CONSIDER
VPCE-
2222.KINESIS.AMAZON.COM
CUSTOMER
NETWORK
CONNECTING ENDPOINTS IN ANOTHER REGION
CONNECTING TO ENDPOINTS ACROSS A VPN
SERVICE PROVIDER TRAFFIC ORIGINATION
ADVERTISING WITH CUSTOMER DNS NAME
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S E C U R I N G A C C E S S T O A M A Z O N I N T E R F A C E V P C E N D P O I N T S
S u b n e t 1 0 . 0 . 1 . 0 / 2 4
Availability Zone A
S u b n e t : 1 0 . 0 . 2 . 0 / 2 4
Availability Zone B
S u b n e t : 1 0 . 0 . 3 . 0 / 2 4
Availability Zone C
S e c u r i t y G r o u p
V P C C I D R : 1 0 . 0 . 0 . 0 / 1 6
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
USE CASES FOR INTERFACE VPC ENDPOINTS
• Endpoint consumers can establish private connectivity to Amazon services
• Customers can share internal services between VPCs, both within a single AWS
account and between AWS accounts
• Partners can deliver services to their customers’ VPCs, or on-premises
networks via Direct Connect
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A. YOU ARE UNABLE TO CONNECT TO ENDPOINTS IN ANOTHER REGION
B. ENDPOINTS CANNOT BE ACCESSED ACROSS A VPN THAT USES AMAZON VGW
C. TRAFFIC CANNOT BE ORIGINATED BY SERVICE PROVIDERS
D. TCP TRAFFIC ONLY
THINGS TO NOTE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
WHERE WE ARE Public-facing web
apps
Internal-only apps What’s next?
VPN
connection
Customer
network
Customer Gateway (CGW)
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ONE VPC
A R C 3 0 4
TWO VPC THREE
VPC
MORE!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SO WHY NOT ONE BIG VPC?
Subnet
Availability Zone A
IPv4
Subnet
Availability Zone B
IPv4
Subnet
Availability Zone C
IPv4
Subnet
Availability Zone A
IPv4
Subnet
Availability Zone B
IPv4
Subnet
Availability Zone C
IPv4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PROD DEV
LOGGING &
MONITORING
CONSIDERATION FOR 1 OR MANY VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PCI APPS HIIPAA
NON-REGULATED
APPS
CONSIDERATION FOR 1 OR MANY VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LEGAL MARKETING SALES
CONSIDERATION FOR 1 OR MANY VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PROD DR
CONSIDERATION FOR 1 OR MANY VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LEGAL
SALES
FINANCE
App, S3 Access, ELB,
VPC Flow Logs, etc…
AWS
CloudTrail
AWS
Config
VPC
Flow Logs
Audit Logging &Analytics VPC
Amazon
RedshiftAmazon EMR
S3
Data Lake
VPC Endpoints
CONSIDERATIONS…
ACCOUNT #1111111
ACCOUNT #2222222
ACCOUNT #7777777
ACCOUNT #00000001
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SHARED SERVICES VPC DESIGN
A R C 3 0 4
VPC
VPC
VPC
VPC
VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DESIGN
Region
VPCVPC
Customer
network
Public
apps
Internal
apps
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
HA VPN
TO
VPC
VPC
HA VPN Pair
Availability Zone A
iBGP
eBGP
Customer CIDRs or Default Route
eBGP
AWS ASN 7224
Re-advertise VPC CIDR via IGP
VGW
VPC CIDR
Customer ASN (Public or Private)
CGW1 CGW2
VPN1
Tun1
VPN1
Tun2
Availability Zone A
VPN2
Tun1
VPN2
Tun2
Reuse your CGW Public IP
to connect to more VPCs
Customer
network
MED
MED
REGION
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
VPC
• DNS
• Directory
• Logging
• Monitoring
• Security
Shared services
Customer
network
REGION
EVOLVING DESIGN REQUIREMENTS
• Centralize network connectivity to and from cloud
• Centralize management, security, and common services
• Account owners in control of own VPC resources
• Many AWS accounts
• Many VPCs
• One region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
HUB & SPOKE
WITH PEERING
VPC
• DNS
• Directory
• Logging
• Monitoring
• SecurityShared services
VPC
Shared
services
VPC
VPC
Customer
network
Spoke VPC
Spoke VPC
Spoke VPCSpoke VPC
Spoke VPC
Spoke VPC
REGION
VPC
VPC
VPC
VPC
VPC
VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC PEERING
Customer
network
VPC
Hub VPC
Private subnet
VPC
Spoke VPC
Public subnet
10.2.0.0/1610.1.0.0/16
Private subnet
Shared services
10.2.22.0/24
10.1.11.0/24
REGION
Private Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 PCX-1
Private Route Table
Destination Target
10.2.0.0/16 Local
10.1.11.0/24 PCX-1
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EDGE-TO-EDGE ROUTING
VPC
Hub VPC
Private subnet
VPC
Spoke VPC
Public subnet
10.2.0.0/1610.1.0.0/16
Private subnet
Shared services
10.2.22.0/24
10.1.11.0/24
172.16.0.0/16
Customer
network
Private Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 PCX-1
Private Route Table
Destination Target
10.2.0.0/16 Local
10.1.11.0/24 PCX-1
172.16.0.0/16 PCX-1
REGION
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EDGE-TO-EDGE
ROUTING VIA
PROXY
VPC
Hub VPC
Private subnet
VPC
Spoke VPC
Proxy
subnets
10.2.0.0/1610.1.0.0/16
PCX-1 10.2.22.0/24
Internal
Network
Load
Balancer
Proxy
fleet
Internet
Public
services
S3
VPC
Customer
network
Proxy Route Table
Destination Target
10.1.0.0/16 local
10.2.0.0/16 PCX-1
172.16.0.0/16 VGW
Private Route Table
Destination Target
10.2.0.0/16 Local
10.1.0.0/16 PCX-1
Proxy Route Table
Destination Target
10.1.0.0/16 Local
10.2.0.0/16 PCX-1
172.16.0.0/16 VGW
0.0.0.0/0 IGW
S3 Prefix List VPCE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PROXY IN PRACTICE
Customer network
Availability Zone A
Private subnet
Public subnet
Private subnet
Network
Load
Balancer
Shared
services
Internet
VPC
Auto Scaling
proxy
fleet
Public
servicesS3
PCX-1
Availability Zone B
Private subnet
Public subnet
Private subnet
Network
Load
Balancer
Shared
services
Auto Scaling
proxy
fleet
Spoke VPC
VPC
Private subnet
Hub VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Private subnet
Public subnet
Private subnet
Network
Load
Balancer
Shared
services
VPC
Auto Scaling
proxy
Fleet
Public
servicesS3
PCX-1
Availability Zone B
Private subnet
Public subnet
Private subnet
Network
Load
Balancer
Bastion
host
Auto Scaling
proxy
fleet
Spoke VPC
VPC
Private subnet
Hub VPC
Customer
network
PROXY IN PRACTICE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SHARED SERVICES HUB: TO DO LIST
• Use IAM to restrict spoke AWS accounts from altering network
• Create a NetOps IAM role in all accounts:
https://aws.amazon.com/blogs/security/how-to-assign-permissions-using-new-aws-
managed-policies-for-job-functions/
• Enable AWS CloudTrail, AWS Config, and VPC Flow Logs for all
accounts
• Integrate CloudTrail with CloudWatch Logs and create alarms:
https://aws.amazon.com/blogs/aws/cloudtrail-integration-with-cloudwatch-now-
available-in-four-more-regions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PRO & CON: SHARED SERVICES HUB & SPOKE
• Minimizes on-premises network change
• Reduces latency, cost of cloud applications
accessing common services
• Provides spoke accounts control over own
resources
• But controls and secures egress traffic from
spokes
• Security groups work across peers
• Cost and management of central proxy
layer
• Not a transparent proxy
• Configuring end devices to use proxy
• Restricted to HTTP/S
• No transitive networking
• Peering data transfer cost
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Customer
network
Availability Zone A
Private subnet
VPC
Availability Zone B
Private subnet
AWS Lambda
Amazon API Gateway
Elastic
Network
Interface
VPCVPC
VPC
VPC
Prod hub
VPC
Internet
Hybrid Serverless
Amazon
Aurora Replica
Mobile Application VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Legacy
Apps
Customer
network
Availability Zone A
Private subnet
VPC
Availability Zone B
Private subnet
AWS Lambda
Amazon API Gateway
Elastic
Network
Interface
VPCVPC
VPC
VPC
Prod hub
VPC
Internet
Amazon
Aurora
Replica
Mobile Application VPC
Hybrid Serverless
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
BRINGING IT ALL BACK
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
us-east-2
VPC
VPC
VPC
VPC
Transit VPC
VPC
us-west-2
VPC
VPC
VPC
eu-west-1
VPC
VPC
VPC
VPC
Transit VPC
VPC
AWS Network
Backbone
Provider
MPLS
Network
Branch Branch
NA
HQ
VPC
VPC
VPC
VPC
VPC
VPC
Chicago DX
AP
HQ
London DX
ap-northeast-1
VPC
VPC
VPC
VPC
Transit VPC
VPC
EU
HQ
Tokyo DX
You could
do this
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
us-east-2
VPC
VPC
VPC
NA
HQ
Chicago
DX
London
DX
ap-northeast-1
VPC
VPC
VPC
VPC
EU
HQ
us-west-2
VPC
VPC
VPC
eu-east-2
VPC
VPC
VPC
VPC
VPC
VPC
Tokyo
DX
Amazon Public
Services
GLOBALLY
PRIVATE VIF
PUBLIC VIF
Shared
Services
VPC
Shared
Services
VPC
Shared
Services
VPC
DX GATEWAY
T O
MANY
APAC
HQ
INTER-REGION
VPC PEER
VPC PEER
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON DIRECT CONNECT GATEWAY
N E W
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON DIRECT CONNECT GATEWAY
• # of DX Gateways (Global) : Default: 200
• # of VIF attachments per DX Gateway : Default: 30
• # of VGW associations per DX Gateway : Default: 10
LIMITS
• “Global” Object
• Logical grouping of VGW/VPC attachments and private
virtual Interfaces
• VGWs and VIFs can be in any region
• Provides connectivity between each VIF and all attached
VPCs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
VPC
VPC
VPC
Private VIFs &
AWS Direct
Connect
(DX)
Customer
network
AWS Direct Connect
location
Private virtual interface (VIF) to VGW
• 1 PVI per VGW
• 1 BGP ASN
• 1 802.1Q VLAN Tag
• 1 BGP MD5 key
Private fiber connection
One or multiple
50-500 Mbps,
1 Gbps or 10 Gbps pipes
Region
PRIVATE VIF
BGP SESSION WITH EACH VGW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
US-EAST-1
DX Connection
VPC
VPC
PRIVATEVIF
VPC
DX Location in Oregon
US-EAST-1
DX Gateway
VPC
VPC
PRIVATE VIF
VPC
EU-WEST-1
VPC
EU-WEST-1
• 1 PVIF Configuration needed to reach multiple VPCs
• No limitation on PVIF Creation
• BGP Session between customer network and GW
• 1 PVIF per VPC VGW
• PVIF limited by Bandwidth
• BGP Session between VGW & Customer Network
Associated
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon
Direct Connect Gateway
MED
VPC
ROUTES
AS_PATH_PREPEND
ONLY
CORP NETWORK ROUTES
172.16.0.0/16
PRIVATE VIF
ALL VPC ROUTES
CORPORATE
NETWORK
Main Route Table
Destination Target
10.30.0.0/16 Local
172.16.0.0/16 Local
10.30.0.0/1610.20.0.0/1610.10.0.0/16
Main Route Table
Destination Target
10.10.0.0/16 Local
172.16.0.0/16 Local
Main Route Table
Destination Target
10.20.0.0/16 Local
172.16.0.0/16 Local
10.10.0.0/16
10.20.0.0/16
10.30.0.0/16
172.16.0.0/16
10.10.0.0/16
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
Private Route Table
Destination Target
10.1.0.0/16 Local
172.160.0/16 VGW
create-direct-connect-gateway
--direct-connect-gateway-name abcd-GW
--amazon-side-asn 65555
STEP 1.
Create a Direct Connect Gateway
STEP 2.
Associate VPCs with Your Direct Connect GW
STEP 3.
Build Private VIFs to Your Gateway
associate
Name: My-DX-GW
BGP ASN: 65500
Private VIF
Provider
MPLS Network
Corporate HQ
172.160.0/16
10.1.0.0/16
create-direct-connect-gateway-
association
--direct-connect-gateway-id abcd1234-d
--virtual-gateway-id vgw-1234567
BGP ASN:
65505
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
VPC
VPC
VPC
LONDON HODX LOCATION
LONDON
Private fiber connection
One or multiple 50–500 Mbps,
1 Gbps or 10 Gbps pipes
US-EAST-1
AP-SOUTH-1
VPC
EU-WEST-1
VPC
VPC
NORTHERN VA,
USA DX LOCATION
NORTHERN VA
PRIVATE VIF
PRIVATE VIF
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
LONDON HO
VPC
VPC
VPC
VPC
VPC
LONDON HODX LOCATION
LONDON
Private fiber connection
One or multiple 50–500 Mbps,
1 Gbps or 10 Gbps pipes
US-EAST-1
DX Gateway
AP-SOUTH-1
VPC
EU-WEST-1
VPC
VPC
NORTHERN VA,
USA DX LOCATION
NORTHERN VA
PRIVATE VIF
PRIVATE VIF
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
US-WEST-2 / OREGON
VPC
VPC
EU-WEST-1
PRIVATE VIF
Oregon DX Location
DX Gateway
VPCE-
2222.FOO.AMAZON.COM
EC2 EC2 EC2
VPC
VPC
ACCOUNT-B
ACCOUNT-A
Customer
network
ACCOUNT-A
ACCOUNT-A
North American Office
US-WEST-2 / OREGON
INTER-REGION VPC PEERING
CONNECTION
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
US-WEST-2 / OREGON
VPC
VPC
EU-WEST-1
PRIVATE VIF
DX Gateway
VPCE-
2222.FOO.AMAZON.COM
EC2 EC2 EC2
VPC
VPC
ACCOUNT-B
ACCOUNT-A
Customer
network
ACCOUNT-A
ACCOUNT-A
North American Office
US-WEST-2 / OREGON
INTER-REGION VPC PEERING
CONNECTION
PRIVATE VIF
ACCOUNT-B
Oregon DX Location
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Leverages Amazon Global Network Backbone
• Multiple VIF attachments to a gateway
• Multiple VGW/VPC attachments to a gateway
• VIFs and VGWs can be in any region
• Single account at launch
• VIF, DX Gateway, and VGW must have same account
• VPC CIDRs cannot overlap
• A VGW can only be associated to a single DX Gateway
• CloudHub is not supported
• VPN Failover is supported
Pro & Con: Direct Connect GW
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
GREAT! BUT I ONLY HAVE VPNs
BETWEEN MY DC & AWS
W H A T A R E M Y O P T I O N S F O R S I M P L I F I C A T I O N ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC MASS TRANSIT
A R C 3 0 4
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DESIGN REQUIREMENTS
• Centralize and minimize network connections
• Allow end-to-end routing from cloud to existing networks
• Minimal operational overhead
• Leverage AWS network
• Many AWS accounts
• Many VPCs
• Many regions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Public subnet
VPC
Availability Zone B
Public subnet
Region
EC2 VPN EC2 VPN
TRANSIT VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability Zone A
Public subnet
VPC
Availability Zone B
Public subnet
Region
VPC Spoke VPC
Transit VPC
VPC
Spoke VPC
VPC
Spoke VPC
TRANSIT
VPC
EC2 VPN EC2 VPN
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
VPC
VPC
VPC
VPC
VPC
VPC
VPC
Transit VPC
Customer
network
Spoke VPC
Spoke VPC
Spoke VPCSpoke VPC
Spoke VPC
Spoke VPC
Branches
Transit
VPC
Region
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://aws.amazon.com/answers/networking/transit-vpc/
TRANSIT
VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NET402—Deep Dive:
AWS Direct Connect
and VPNs
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EQUINIX
Oregon
Customer
network
us-east-1
us-east-2
us-west-1
us-west-2
DI R EC T C ONNEC T I NT ER -R EG I ON C ONNEC T I V I T Y I N US A
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
EQUINIX
Oregon
DI RECT CONNECT GLOB AL I NTER -REGI ON CONNECTI V I TY
?????? ?
G O L A B L D I R E C T C O N N E C T I V I T Y
• I S I T P O S S I B L E ?
• H O W D O Y O U A C H I E V E I T ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AMAZON DIRECT CONNECT GLOBAL PUBLIC VIFS
N E W
C R E A T E P U B L I C V I F S T O P U B L I C A W S S E R V I C E S G L O B A L L Y
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
D X
L O C A T I O N
P U B L I C V I F
N. Virginia
Ohio
N. California
SAO PAULO
Frankfurt
IrelandLondon
A M E R I C A
E U R O P E
A S I A
Singapore SydneyMumbaiTokyo Seoul
Oregon
S . A M E R I C A
Montreal
Customer North American Office
B G P A S N
6 5 5 1 5
O h i o R o u t e s A d v e r t i s e d
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Be selective in your public network announcements
• Filtering public prefix announcements if necessary
• Authoritative AWS public IP list available:
https://ip-ranges.amazonaws.com/ip-ranges.json
• For notification of IP changes, subscribe to SNS topic:
arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged
AWS DIRECT CONNECT PUBLIC INTERFACE
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
I N
CONCLUSION
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CUSTOMER HOSTED SERVICES
VIA PRIVATE LINKS
USE
DIRECT CONNECT GATEWAY
INTRA & INTER REGION
VPC PEER LINKS
DIRECT CONNECT PUBLIC VIFS
TRANSIT VPC
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!
A R C 3 0 4
Y O U A R E A W E S O M E !

Más contenido relacionado

La actualidad más candente

How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017
How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017
How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017Amazon Web Services
 
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...Amazon Web Services
 
DEV329_Cisco’s Journey from Monolith to Microservices
DEV329_Cisco’s Journey from Monolith to MicroservicesDEV329_Cisco’s Journey from Monolith to Microservices
DEV329_Cisco’s Journey from Monolith to MicroservicesAmazon Web Services
 
CTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsCTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsAmazon Web Services
 
Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Amazon Web Services
 
NET304_Deep Dive into the New Network Load Balancer
NET304_Deep Dive into the New Network Load BalancerNET304_Deep Dive into the New Network Load Balancer
NET304_Deep Dive into the New Network Load BalancerAmazon Web Services
 
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeCTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeAmazon Web Services
 
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWSGPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWSAmazon Web Services
 
ARC330_How the BBC Built a Massive Media Pipeline Using Microservices
ARC330_How the BBC Built a Massive Media Pipeline Using MicroservicesARC330_How the BBC Built a Massive Media Pipeline Using Microservices
ARC330_How the BBC Built a Massive Media Pipeline Using MicroservicesAmazon Web Services
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...Amazon Web Services
 
CON208_Building Microservices on AWS
CON208_Building Microservices on AWSCON208_Building Microservices on AWS
CON208_Building Microservices on AWSAmazon Web Services
 
DAT320_Moving a Galaxy into Cloud
DAT320_Moving a Galaxy into CloudDAT320_Moving a Galaxy into Cloud
DAT320_Moving a Galaxy into CloudAmazon Web Services
 
DEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon WayDEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon WayAmazon Web Services
 
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayDEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayAmazon Web Services
 
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017Amazon Web Services
 
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...Amazon Web Services
 
MCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfMCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfAmazon Web Services
 
GPSTEC324_STORAGE FOR HPC IN THE CLOUD
GPSTEC324_STORAGE FOR HPC IN THE CLOUDGPSTEC324_STORAGE FOR HPC IN THE CLOUD
GPSTEC324_STORAGE FOR HPC IN THE CLOUDAmazon Web Services
 
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...Amazon Web Services
 

La actualidad más candente (20)

How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017
How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017
How Do I Build a Global Transit Network on AWS? - MSC302 - re:Invent 2017
 
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
MBL209_Learn How MicroStrategy on AWS is Helping Vivint Solar Deliver Clean E...
 
DEV329_Cisco’s Journey from Monolith to Microservices
DEV329_Cisco’s Journey from Monolith to MicroservicesDEV329_Cisco’s Journey from Monolith to Microservices
DEV329_Cisco’s Journey from Monolith to Microservices
 
CTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video WorkflowsCTD405_Building Serverless Video Workflows
CTD405_Building Serverless Video Workflows
 
Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)Building Serverless Real-time Data Processing (workshop)
Building Serverless Real-time Data Processing (workshop)
 
NET304_Deep Dive into the New Network Load Balancer
NET304_Deep Dive into the New Network Load BalancerNET304_Deep Dive into the New Network Load Balancer
NET304_Deep Dive into the New Network Load Balancer
 
ARC213_Open Source at AWS
ARC213_Open Source at AWSARC213_Open Source at AWS
ARC213_Open Source at AWS
 
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@EdgeCTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
CTD201_Introduction to Amazon CloudFront and AWS Lambda@Edge
 
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWSGPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
GPSWKS406-Migrating a Microsoft ASP.NET Application to AWS
 
ARC330_How the BBC Built a Massive Media Pipeline Using Microservices
ARC330_How the BBC Built a Massive Media Pipeline Using MicroservicesARC330_How the BBC Built a Massive Media Pipeline Using Microservices
ARC330_How the BBC Built a Massive Media Pipeline Using Microservices
 
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
I Want to Analyze and Visualize Website Access Logs, but Why Do I Need Server...
 
CON208_Building Microservices on AWS
CON208_Building Microservices on AWSCON208_Building Microservices on AWS
CON208_Building Microservices on AWS
 
DAT320_Moving a Galaxy into Cloud
DAT320_Moving a Galaxy into CloudDAT320_Moving a Galaxy into Cloud
DAT320_Moving a Galaxy into Cloud
 
DEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon WayDEV203_Launch Applications the Amazon Way
DEV203_Launch Applications the Amazon Way
 
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-RayDEV204_Debugging Modern Applications Introduction to AWS X-Ray
DEV204_Debugging Modern Applications Introduction to AWS X-Ray
 
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017
Taking DevOps Closer to the AWS Edge - CTD401 - re:Invent 2017
 
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...
MBL204_Architecting Cost-Effective Mobile Backends for Scale, Security, and P...
 
MCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdfMCL306_Making IoT Smarter with AWS Rekognition.pdf
MCL306_Making IoT Smarter with AWS Rekognition.pdf
 
GPSTEC324_STORAGE FOR HPC IN THE CLOUD
GPSTEC324_STORAGE FOR HPC IN THE CLOUDGPSTEC324_STORAGE FOR HPC IN THE CLOUD
GPSTEC324_STORAGE FOR HPC IN THE CLOUD
 
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
STG330_Case Study How Experian Leverages Amazon EC2, EBS, and S3 with Clouder...
 

Similar a ARC304_From One to Many Evolving VPC Design

From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018
From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018
From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018Amazon Web Services
 
AWS networking fundamentals - SVC303 - Santa Clara AWS Summit
AWS networking fundamentals - SVC303 - Santa Clara AWS SummitAWS networking fundamentals - SVC303 - Santa Clara AWS Summit
AWS networking fundamentals - SVC303 - Santa Clara AWS SummitAmazon Web Services
 
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAmazon Web Services
 
Fundamentals of AWS networking - SVC303 - Atlanta AWS Summit
Fundamentals of AWS networking - SVC303 - Atlanta AWS SummitFundamentals of AWS networking - SVC303 - Atlanta AWS Summit
Fundamentals of AWS networking - SVC303 - Atlanta AWS SummitAmazon Web Services
 
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...Amazon Web Services
 
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitPlan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitAmazon Web Services
 
AWS networking fundamentals - SVC211 - São Paulo AWS Summit
AWS networking fundamentals - SVC211 - São Paulo AWS SummitAWS networking fundamentals - SVC211 - São Paulo AWS Summit
AWS networking fundamentals - SVC211 - São Paulo AWS SummitAmazon Web Services
 
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017Amazon Web Services
 
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...Amazon Web Services
 
Deep Dive on New AWS Networking Features - AWS Online Tech Talks
Deep Dive on New AWS Networking Features - AWS Online Tech TalksDeep Dive on New AWS Networking Features - AWS Online Tech Talks
Deep Dive on New AWS Networking Features - AWS Online Tech TalksAmazon Web Services
 
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...Amazon Web Services
 
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)Amazon Web Services
 
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS Summit
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS SummitExploring the fundamentals of AWS networking - SVC210 - Chicago AWS Summit
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS SummitAmazon Web Services
 
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...Amazon Web Services
 
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014Amazon Web Services
 
Exploring the fundamentals of AWS networking - SVC211 - New York AWS Summit
Exploring the fundamentals of AWS networking - SVC211 - New York AWS SummitExploring the fundamentals of AWS networking - SVC211 - New York AWS Summit
Exploring the fundamentals of AWS networking - SVC211 - New York AWS SummitAmazon Web Services
 
AWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAmazon Web Services
 
Planning advanced AWS networking architectures - SVC304 - Chicago AWS Summit
Planning advanced AWS networking architectures - SVC304 - Chicago AWS SummitPlanning advanced AWS networking architectures - SVC304 - Chicago AWS Summit
Planning advanced AWS networking architectures - SVC304 - Chicago AWS SummitAmazon Web Services
 

Similar a ARC304_From One to Many Evolving VPC Design (20)

From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018
From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018
From One to Many: Evolving VPC Design (ARC309-R1) - AWS re:Invent 2018
 
AWS networking fundamentals - SVC303 - Santa Clara AWS Summit
AWS networking fundamentals - SVC303 - Santa Clara AWS SummitAWS networking fundamentals - SVC303 - Santa Clara AWS Summit
AWS networking fundamentals - SVC303 - Santa Clara AWS Summit
 
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS SummitAWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
AWS Networking Fundamentals - SVC304 - Anaheim AWS Summit
 
Fundamentals of AWS networking - SVC303 - Atlanta AWS Summit
Fundamentals of AWS networking - SVC303 - Atlanta AWS SummitFundamentals of AWS networking - SVC303 - Atlanta AWS Summit
Fundamentals of AWS networking - SVC303 - Atlanta AWS Summit
 
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
From One to Many: Diving Deeper into Evolving VPC Design (ARC310-R2) - AWS re...
 
Kubernetes on AWS
Kubernetes on AWSKubernetes on AWS
Kubernetes on AWS
 
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS SummitPlan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
Plan Advanced AWS Networking Architectures - SRV323 - Chicago AWS Summit
 
AWS networking fundamentals - SVC211 - São Paulo AWS Summit
AWS networking fundamentals - SVC211 - São Paulo AWS SummitAWS networking fundamentals - SVC211 - São Paulo AWS Summit
AWS networking fundamentals - SVC211 - São Paulo AWS Summit
 
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017
Networking Many VPCs: Transit and Shared Architectures - NET404 - re:Invent 2017
 
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
DevNetOps: Automating large-scale hybrid cloud architectures - AWS Summit Cap...
 
Deep Dive on New AWS Networking Features - AWS Online Tech Talks
Deep Dive on New AWS Networking Features - AWS Online Tech TalksDeep Dive on New AWS Networking Features - AWS Online Tech Talks
Deep Dive on New AWS Networking Features - AWS Online Tech Talks
 
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...
Your Virtual Data Center: VPC Fundamentals and Connectivity Options (NET201) ...
 
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)
Expanding Your AWS and On-premise Footprint to AWS GovCloud (US)
 
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS Summit
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS SummitExploring the fundamentals of AWS networking - SVC210 - Chicago AWS Summit
Exploring the fundamentals of AWS networking - SVC210 - Chicago AWS Summit
 
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...
Creating Your Virtual Data Center - VPC Fundamentals and Connectivity Options...
 
AWS Networking Fundamentals
AWS Networking FundamentalsAWS Networking Fundamentals
AWS Networking Fundamentals
 
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014
(ARC403) From One to Many: Evolving VPC Design | AWS re:Invent 2014
 
Exploring the fundamentals of AWS networking - SVC211 - New York AWS Summit
Exploring the fundamentals of AWS networking - SVC211 - New York AWS SummitExploring the fundamentals of AWS networking - SVC211 - New York AWS Summit
Exploring the fundamentals of AWS networking - SVC211 - New York AWS Summit
 
AWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid EnvironmentsAWS Networking for Migration and Hybrid Environments
AWS Networking for Migration and Hybrid Environments
 
Planning advanced AWS networking architectures - SVC304 - Chicago AWS Summit
Planning advanced AWS networking architectures - SVC304 - Chicago AWS SummitPlanning advanced AWS networking architectures - SVC304 - Chicago AWS Summit
Planning advanced AWS networking architectures - SVC304 - Chicago AWS Summit
 

Más de Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

Más de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

ARC304_From One to Many Evolving VPC Design

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS re:INVENT F ROM ONE TO MANY: E VOL VING VPC DE SIG N A n d r o s k i S p i c e r : S o l u t i o n s A r c h i t e c t A R C 3 0 4 N o v e m b e r 2 8 , 2 0 1 7
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SIMPLICITY A M A Z O N V P C A R C H I T E C T U R E
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Subnet I TRUST YOU’VE HEARD OF Route Table Elastic Network Interface Amazon VPC Internet Gateway Virtual Private Gateway VPN Connection Network ACL Security group Enhanced Networking VPC Peering AWS Direct Connect Availability Zone VPC Endpoints Amazon VPC Region
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. RELATED SESSIONS NET201—Creating Your Virtual Data Center: VPC Fundamentals and Connectivity Options NET301—Extending Datacenters to the Cloud: Connectivity Options and Considerations for Hybrid Environments
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ONE VPC …. Subnet Network ACL Availability Zone - A Region Subnet Network ACL Availability Zone - B
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. us-east-2 VPC VPC VPC NA HQ Chicago DX London DX ap-northeast-1 VPC VPC VPC VPC EU HQ us-west-2 VPC VPC VPC eu-east-2 VPC VPC VPC VPC VPC VPC Tokyo DX Amazon Public Services GLOBALLY PRIVATE VIF PUBLIC VIF Shared Services VPC Shared Services VPC Shared Services VPC DX GATEWAY T O MANY APAC HQ INTER REGION VPC PEER VPC PEER
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC DESIGN A R C 3 0 4
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC DESIGN /16 Choose a CIDR • CIDR fixed on VPC creation • /16 down to /28 • Should You Go Big? Region
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC IPv4 SPACE DESIGN • Don’t overlap IP space • Consider connectivity to corporate networks • Plan for expansion to additional Availability Zones or regions Subnet Availability Zone A IPv4 Region
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC IPv6 SPACE DESIGN • Optionally enable IPv6 on VPC • /56 of Amazon’s Global Unicast Address (GUA) per VPC • /64 CIDR block per subnet • IPv6 completely independent from IPv4 • Enabled per subnet or per instance (per ENI) • Supported by Security Groups, Route Tables, NACLs, VPC Peering, IGW, DX, Flow Logs, and DNS Resolution Subnet Availability Zone A IPv6IPv4 Region
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC ID : abc-de-fg-7 Availability Zone A Subnet Secondary CIDR : 10.2.0.0/16 Secondary CIDR : 10.3.0.0/16 Secondary CIDR : 10.4.0.0/16 Secondary CIDR : 10.5.0.0/16 Primary CIDR : 10.1.0.0/28 VPC RESIZING
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC ID : abc-de-fg-7 Secondary CIDR : 10.2.0.0/16 Secondary CIDR : 10.3.0.0/16 Secondary CIDR : 10.4.0.0/16 Secondary CIDR : 10.5.0.0/16 Primary CIDR : 10.1.0.0/28 Route Table Main Route Table Destination Target 10.1.0.0/28 Local 10.2.0.0/16 Local 10.3.0.0/16 Local 10.4.0.0/16 Local 10.5.0.0/16 Local US-WEST-2 INTER CIDR ROUTING
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC ID : abc-de-fg-7 Secondary CIDR : 10.2.0.0/16 Secondary CIDR : 10.3.0.0/16 Secondary CIDR : 10.4.0.0/16 Secondary CIDR : 10.5.0.0/16 Primary CIDR : 10.1.0.0/28 Route Table US-WEST-2 CONSIDER! • CIDR Block/s cannot overlap • Existing CIDR Blocks cannot change • CIDR block must not be the same or larger than the CIDR range of a route in any of the VPC route tables Primary CIDR 10.3.0.0/16 VPC Peering
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC ID : abc-de-fg-7 Secondary CIDR : 10.2.0.0/16 Secondary CIDR : 10.4.0.0/16 Primary CIDR : 10.1.0.0/28 Route Table US-WEST-2 CONSIDER! • Secondary CIDR Blocks can be added and removed • Primary CIDR Block cannot be resized or removed Cannot Change!
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC ID : abc-de-fg-7 Secondary CIDR : 10.2.0.0/16 Secondary CIDR : 10.4.0.0/16 Primary CIDR : 10.1.0.0/28 Route Table US-WEST-2 CONSIDER! • Primary CIDR Range Dictates which other RFC1918 Ranges can be used • For example, if you use 10.0.0.0/8, then your additional CIDRs must be from the RFC1918 10. space Secondary CIDR : 192.168.0.0/16 Secondary CIDR : 172.16.0.0/16
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SUBNET CREATION Availability Zone A • Even distribution of IP space across AZs • Use at least 2 AZs • Subnets are AZ specific • How big? How many? Subnet Availability Zone B Subnet Availability Zone C Subnet /16
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SUBNET CREATION Availability Zone A Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet Subnet /16
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC SUBNET DESIGN • T r a d i t i o n a l s w i t c h i n g l i m i t a t i o n s d o n o t a p p l y • C o n s i d e r l a r g e , m i x e d - u s e s u b n e t s • U s e s e c u r i t y g r o u p s t o e n f o r c e i s o l a t i o n • U s e t a g s f o r g r o u p i n g r e s o u r c e s • U s e s u b n e t s a s c o n t a i n e r s f o r r o u t i n g p o l i c y
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IPv4 VPC SUBNET DESIGN /16 Availability Zone A Hybrid Subnet Public subnet Private subnet Availability Zone B Public subnet Private subnet Availability Zone C Public subnet Private subnet /22 /22 /22 /20 /20 /20 /20 /20 /20 4091 IPs 1019 IPs 4091 IPs Hybrid Subnet Hybrid Subnet
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. WHAT ABOUT IPV6 DESIGN Availability Zone A Public subnet Private subnet Availability Zone B Public subnet Private subnet Availability Zone C Public subnet Private subnet /64 /54 /64 /64 /64 /64 /64 18 QUINTILLION 18 QUINTILLION 18 SEXTILLION
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LOCAL ROUTING POLICY Availability Zone A Hybrid subnet Public subnet Private subnet .1 .1 .1 Main Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 Local Primary VPC CIDR 10.1.0.0/16 Availability Zone B Hybrid subnet Public subnet Private subnet .1 .1 .1 Availability Zone B Public subnet Private subnet .1 .1 SECONDARY CIDR 10.2.0.0/16 US-WEST-2
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Hybrid subnet Public subnet Private subnet .1 .1 .1 Main Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 Local 0.0.0.0/0 igw-a1234567 Primary VPC CIDR 10.1.0.0/16 Availability Zone B Hybrid subnet Public subnet Private subnet .1 .1 .1 Availability Zone B Public subnet Private subnet .1 .1 SECONDARY CIDR 10.2.0.0/16 US-WEST-2 INTERNET AMAZON PUBLIC SERVICES INTERNET GATEWAY
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Private subnet Public subnet Private subnet .1 .1 .1 VPC CIDR 2001:db8:1234:1a00::/56 Availability Zone B Private subnet Public subnet Private subnet .1 .1 .1 US-WEST-2 INTERNET AMAZON PUBLIC SERVICESPublic Route Table Destination Target 10.1.0.0/16 Local 2001:db8:1234:1a00::/56 Local 0.0.0.0/0 IGW ::/0 igw-a1234567 INTERNET GATEWAY Global Unicast Address (GUA)
  • 24. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Private subnet Public subnet Private subnet .1 .1 .1 VPC CIDR 2001:db8:1234:1a00::/56 Availability Zone B Private subnet Public subnet Private subnet .1 .1 .1 US-WEST-2 INTERNET AMAZON PUBLIC SERVICES Public Route Table Destination Target 10.1.0.0/16 Local 2001:db8:1234:1a00::/56 Local 0.0.0.0/0 IGW ::/0 eigw-0ab0 INTERNET GATEWAY Global Unicast Address (GUA) EGRESS ONLY
  • 25. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Hybrid subnet Public subnet Private subnet .1 .1 .1 Main Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 Local 172.16.0.0/16 vgw-a1234567 Primary VPC CIDR 10.1.0.0/16 Availability Zone B Hybrid subnet Public subnet Private subnet .1 .1 .1 Availability Zone B Public subnet Private subnet .1 .1 SECONDARY CIDR 10.2.0.0/16 US-WEST-2 NORTHER VIRGINIA CORPORATE DATA CENTER REMOTE OFFICE BUILDING VIRTUAL GATEWAY (VGW) 172.16.0.0/16 AMAZON DIRECT CONNECT
  • 26. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ROUTING IN THE HYBRID SUBNET Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 ??? Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet Hybrid subnetHybrid subnet
  • 27. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ROUTING IN THE HYBRID SUBNET Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT instance Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT INSTANCE Hybrid subnet Hybrid subnet
  • 28. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ROUTING IN THE HYBRID SUBNET Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT instance Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT INSTANCE NAT INSTANCE Hybrid subnet Hybrid subnet
  • 29. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DESIGNING SCALABLE NAT A R C 3 0 4
  • 30. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EVOLVING DESIGN REQUIREMENTS • Public subnets for resources reachable from Internet • Hybrid subnets with egress-only access to public network • Scalable, highly available NAT • One AWS account • One VPC • One region
  • 31. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ROUTING IN THE HYBRID SUBNET Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT instance Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT INSTANCE NAT INSTANCE Hybrid subnet Hybrid subnet
  • 32. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DEPLOY A NAT GATEWAY Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT-GW-1 Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT GATEWAY • Still need IGW • Separate subnets • Requires EIP • AZ specific • Burst to 10 Gbps Hybrid subnet Hybrid subnet
  • 33. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Hybrid subnet ROUTING IN THE PRIVATE SUBNET Availability Zone A Hybrid subnet Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT-GW-2 Corp CIDR VGW Private subnet CORPORATE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT GATEWAY NAT GATEWAY
  • 34. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ROUTING IN THE PRIVATE SUBNET Availability Zone A Public subnet Private Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT-GW-2 Corp CIDR VGW Private subnet CORPORTAE DATA CENTER Availability Zone A Public subnet Private subnet INTERNET GATEWAY INTERNET NAT GATEWAY NAT GATEWAY Hybrid subnet Hybrid subnet
  • 35. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NAT GATEWAY: SECURING ACCESS 1 NAT Gateway ENI: Network ACL Public subnet NAT Gateway Amazon Network ACLs still apply
  • 36. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NAT GATEWAY: SECURING ACCESS Use routing policy to control access to NAT Gateway Private subnet Public subnet Private subnet NAT Enabled no-NAT no-NAT Private Route Table Destination Target 10.1.0.0/16 Local NAT Enabled Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0/0 NAT Gateway NAT Gateway 2
  • 37. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NAT GATEWAY: SECURING ACCESS Outbound Rules Type Protocol Port Range Destination All traffic All 0 - 65535 0.0.0.0/0 Use security groups to restrict outbound access for instances Default VPC security group: 3
  • 38. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NAT GATEWAY: SECURING ACCESS Outbound Rules Type Protocol Port Range Destination All traffic All 0 - 65535 10.2.0.0/16 Outbound Rules Type Protocol Port Range Destination All traffic All 0 - 65535 0.0.0.0/0 Use security groups to restrict outbound access for instances Default VPC security group: NAT Enabled VPC security group: 3
  • 39. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NAT GATEWAY PROs & CONs • Drop in replacement for NAT instance • Fully managed • Highly available and fault tolerant • Scalable to 10 Gbps bursts per gateway • Supports VPC Flow Logs • No higher level functions like IPS, UTM, URL Filtering, packet inspection, etc. • Cannot associate security group to gateway
  • 40. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. TOO MANY APPS INTERACT WITH WHAT ABOUT INGRESS CONTROL Customer network Amazon S3 Amazon DynamoDB Amazon Kinesis
  • 41. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. INGRESS CONTROL A R C 3 0 4
  • 42. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON ELASTIC LOAD BALANCING Elastic Load Balancing supports three types of load balancers: Application Load Balancer Network Load Balancer Classic Load Balancer Layer 7 HTTP/HTTPS WS/WSS Layer 4 TCP Layer 4 TCP , SSL, HTTP,HTTPS
  • 43. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON NETWORK LOAD BALANCER (NLB) Network Load Balancer • Handle volatile traffic patterns • Designed to load balance millions of requests per second • Offers extremely low latencies for latency-sensitive applications • Preserve Source IP address • Static IP support • Elastic IP support • Supports Long Lived TCP Sessions • Zonality
  • 44. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Target Group A Availability Zone A PRIVATE SUBNET PUBLIC SUBNET Availability Zone B PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group A AMAZON NETWORK LOAD BALANCER (NLB) Instance ID Instance ID Instance ID Instance ID IP Address IP Address IP Address IP Address EIPEIP
  • 45. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Target Group A Availability Zone A PRIVATE SUBNET PUBLIC SUBNET Availability Zone B PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group A AMAZON NETWORK LOAD BALANCER (NLB) Instance ID Instance ID Instance ID Instance ID IP Address IP Address IP Address IP Address EIPEIP
  • 46. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Target Group A Availability Zone A PRIVATE SUBNET PUBLIC SUBNET Availability Zone B PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group B AMAZON NETWORK LOAD BALANCER (NLB) Target Group Instance ID Instance ID IP Address IP Address Listener Rule TCP 443
  • 47. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Target Group A Availability Zone A PRIVATE SUBNET PUBLIC SUBNET Availability Zone B PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group A AMAZON NETWORK LOAD BALANCER (NLB) Task Task Target Groups are not limited to Amazon EC2 OR Your VPC/s TaskTask
  • 48. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Target Group A Availability Zone A PRIVATE SUBNET PUBLIC SUBNET Availability Zone B PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group A AMAZON NETWORK LOAD BALANCER (NLB) 10.1.1.45 10.1.1.47 Customer network 10.20.2.150 10.20.2.14 10.20.2.15 Target Group A 10.1.1.45 10.1.1.45
  • 49. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PRIVATE SUBNET PUBLIC SUBNET PRIVATE SUBNET PUBLIC SUBNET 55.70.200.20 57.10.40.20 Target Group 10.1.1.45 10.1.1.47 10.1.2.45 10.1.2.45 Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0 eni-7a795854 Amazon NLB SQUID SQUID SQUID SQUID 10.1.3.0/24 HYBRID SUBNET Internal Apps Internal Apps Internal Apps Internal Apps Internal Apps Internal AppsSource Destination Check Disabled by Default IGW INTERNET
  • 50. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EGRESS CONTROL A R C 3 0 4
  • 51. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EVOLVING DESIGN REQUIREMENTS • VPN connectivity to private-only VPC • No egress in the VPC to public networks • Private IP access to Amazon S3 • Content-specific access controls • One AWS account • One VPC • One region
  • 52. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. YOU REALLY DON’T WANT TO DO THIS Private subnet Private subnet Virtual Private Gateway VPN connection Intranet app Intranet app Amazon S3 Internet Customer border router Customer VPN Internet Customer network Amazon DynamoDB Availability Zone A Availability Zone B Amazon Kinesis
  • 53. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Oregon (us-west-2) Region CIDR : 10.0.0.0/16 Availability Zone - A Private Subnet: 10.0.1.0/24 VPC Endpoint Network Interface Private IP : 10.0.1.7 EC2 Private IP 10.0.1.12 Availability Zone - B Private Subnet: 10.0.2.0/24 Private IP :10.0.2.120 VPC Endpoint Network Interface Private IP : 10.0.2.7 Amazon S3Amazon DynamoDB VPN connection Customer network Amazon Kinesis
  • 54. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON VPC ENDPOINTS Interface Gateway Virtual Devices Horizontally Scaled Redundant & Highly Available VPC Components that Provide Access to AWS Services N E W
  • 55. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY VPC ENDPOINT
  • 56. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY ENDPOINTS Private subnet Public subnet NAT Gateway Amazon S3 Amazon DynamoDB Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0 NAT Gateway
  • 57. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY ENDPOINTS Target for a specified route in your route table Route Table Destination Target 10.1.0.0/16 Local Corp CIDR VGW Prefix List for S3 us-west-2 VPC-Endpoint Prefix List for DynamoDB- us-west-2 VPC-Endpoint Amazon S3 Amazon DynamoDB EC2 EC2 EC2
  • 58. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY ENDPOINTS Target for a specified route in your route table Route Table Destination Target 10.1.0.0/16 Local Corp CIDR VGW Prefix List for S3 us-west-2 VPC-Endpoint Prefix List for DynamoDB- us-west-2 VPC-Endpoint Amazon S3 Amazon DynamoDB aws ec2 create-vpc-endpoint --vpc-id vpc-40f18d25 --service-name com.amazonaws.us-west-2.s3 --route-table-ids rtb-2ae6a24f rtb-61c78704 aws ec2 create-vpc-endpoint --vpc-id vpc-40f18d25 --service-name com.amazonaws.us-west-2.dynamodb aws ec2 describe-vpc-endpoint-services { "ServiceNames": [ "com.amazonaws.us-east-1.s3", "com.amazonaws.us-east-1.dynamodb" ] }
  • 59. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY ENDPOINTS Private subnet Route Table Destination Target 10.1.0.0/16 Local 0.0.0.0 NAT Gateway Prefix List for S3 us-west-2 VPCE Public subnet NAT Gateway Amazon S3 Amazon DynamoDB aws ec2 describe-prefix-lists PREFIXLISTS pl-68a54001 com.amazonaws.us-west-2.s3 CIDRS 54.231.160.0/19 CIDRS 52.218.128.0/18
  • 60. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GATEWAY ENDPOINT SECURITY … and use them in your outbound security group rules!
  • 61. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CONTROLLING ACCESS S3 VIA IAM POLICY Private subnet AWS Identity & Access Management (IAM) policy on VPCE: { "Statement": [ { "Sid": "vpce-restrict-to-backup-bucket", "Principal": "*", "Action": [ "s3:GetObject", "s3:PutObject” ], "Effect": "Allow", "Resource": ["arn:aws:s3:::backups-reinvent", "arn:aws:s3:::backups-reinvent/*"] } ] } Backups bucket?
  • 62. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. { "Statement": [ { "Sid": "bucket-restrict-to-specific-vpce", "Principal": "*", "Action": "s3:*", "Effect": "Deny", "Resource": ["arn:aws:s3:::backups-reinvent", "arn:aws:s3:::backups-reinvent/*"], "Condition": { "StringNotEquals": { "aws:sourceVpce": "vpce-bc42a4e5” } } } ] } CONTROLLING ACCESS VIA VPC ENDPOINT Private subnet S3 bucket policy: From vpce-bc42a4e5?
  • 63. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CONTROLLING ACCESS DYNAMODB Private subnet AWS Identity & Access Management (IAM) policy on VPCE: Accessing DynamoDB Through a Specific VPCE Access { "Version": "2012-10-17", "Statement": [ { "Sid": "AccessFromSpecificEndpoint", "Action": "dynamodb:*", "Effect": "Deny", "Resource": "arn:aws:dynamodb:region:account-id:table/*", "Condition": { "StringNotEquals" : { "aws:sourceVpce": "vpce-11aa22bb" } } } ] } VPCE : vpce-11aa22bb ?
  • 64. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. { "Statement": [ { "Sid": "AccessToSpecificTable", "Principal": "*", "Action": [ "dynamodb:Batch*", "dynamodb:Delete*", "dynamodb:DescribeTable", "dynamodb:GetItem", "dynamodb:PutItem", "dynamodb:Update*" ], "Effect": "Allow", "Resource": "arn:aws:dynamodb:us-east1:123456789012:table/StockTable" } ] } CONTROLLING ACCESS DYNAMODB Private subnet VPCE Policy Granting Access to a Specific DDB Table Table : StockTable ?
  • 65. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CONTROLLING VPC ACCESS TO S3 Recap on security layers: 1. Route table association 2. VPCE policy 3. Bucket policy 4. Security groups with prefix list Private subnet 1. 2. 3. 4.
  • 66. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. INTERFACE VPC ENDPOINT N E W P O W E R E D B Y A M A Z O N P R I V A T E L I N K S
  • 67. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. INTERFACE VPC ENDPOINTS A N E L A S T I C N E T W O R K I N T E R F A C E W I T H A P R I V A T E I P A D D R E S S T H A T S E R V E S A S A N E N T R Y P O I N T F O R T R A F F I C D E S T I N E D T O A S U P P O R T E D A W S S E R V I C E AWS Public Services Amazon EC2 (API) & EC2 SSM Amazon Elastic Load Balancing Amazon Kinesis Amazon Service Catalog 1 0 . 1 . 1 0 . 5 0
  • 68. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. HOW IT WORKS AWS Public Services Amazon EC2 (API) & EC2 SSM Amazon Kinesis Amazon Service Catalog 1 0 . 1 . 1 0 . 5 0 S U B N E T - 1 0 . 1 . 1 0 . 4 5 E C 2 F L E E T H O T I N G A P P L I C A T I O N Availability Zone A M A K E S A R E Q U E S T T O E L B E N D P O I N T N A M E k i n e s i s . u s - e a s t - 1 . a m a z o n a w s . c o m R E S O L V E S T O T H E P R I V A T E I P O F T H E E N I Amazon Elastic Load Balancing
  • 69. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I NTERFACE V PC ENDPOI NTS NO ROUTES IN YOUR ROUTE TABLE NO IAM POLICY FOR ENDPOINT NOT ACCESSIBLE VIA (VGW) VPN ONE SUBNET PER AZ PER I-ENDPOINT SUPPORTS TCP ONLY aws ec2 create-vpc-endpoint --vpc-id vpc-ec43eb89 --vpc-endpoint-type Interface --service-name com.amazonaws.us-east-1.elasticloadbalancing --subnet-id subnet-abababab subnet-catbatratsat --security-group-id sg-1a2b3c4d
  • 70. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. C R E A T I N G I N T E R F A C E V P C E N D P O I N T S aws ec2 create-vpc-endpoint --vpc-id vpc-ec43eb89 --vpc-endpoint-type Interface --service-name com.amazonaws.us-east-1.elasticloadbalancing --subnet-id subnet-abababab subnet-catbatratsat --security-group-id sg-1a2b3c4d S u b n e t Availability Zone A S u b n e t Availability Zone B S u b n e t Availability Zone C v p c - i d v p c - e c 4 3 e b 8 9 Amazon EC2 (API) & EC2 SSMAmazon Kinesis AWS Service CatalogElastic Load Balancing aws ec2 describe-vpc-endpoints
  • 71. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ACCESS T HR OUGH I NT ER FAC E V PC ENDPOI NTS I F C R E A T E D I N O R E G O N , W H I C H H A S T H R E E A Z S ENDPOINT-SPECIFIC REGIONAL DNS HOSTNAME vpce-0fe5b17a0707d6abc-29p5708s.kinesis.us-west-2.vpce.amazonaws.com ENDPOINT-SPECIFIC ZONAL DNS HOSTNAME vpce-0fe5b17a0707d6abc-29p5708s-us-west-2a.kinesis.us-west-2.vpce.amazonaws.com vpce-0fe5b17a0707d6abc-29p5708s-us-west-2b.kinesis.us-west-2.vpce.amazonaws.com vpce-0fe5b17a0707d6abc-29p5708s-us-west-2c.kinesis.us-west-2.vpce.amazonaws.com DEFAULT PUBLIC DNS HOSTNAME kinesis.us-west-2.amazonaws.com PRIVATE IP ADDRESS OF THE ENDPOINT NETWORK INTERFACE 10.1.10.50 10.1.20.50 10.1.30.50 SUBMIT REQUESTS TO THE SUPPORTED SERVICE VIA AN ENDPOINT URL
  • 72. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Oregon (us-west-2) Region CIDR : 10.0.0.0/16 Availability Zone - A Private Subnet: 10.0.1.0/24 Private IP : 10.0.1.7 Amazon Kinesis EC2 Private IP : 10.0.1.12 Availability Zone - B Private Subnet: 10.0.2.0/24 10.0.2.7 Private IP : 10.0.2.120 VPCE- 2222.KINESIS.AMAZON.COM PRIVATE CONNECTION OVER AWS NETWORK CONSIDER VPCE- 2222.KINESIS.AMAZON.COM CUSTOMER NETWORK CONNECTING ENDPOINTS IN ANOTHER REGION CONNECTING TO ENDPOINTS ACROSS A VPN SERVICE PROVIDER TRAFFIC ORIGINATION ADVERTISING WITH CUSTOMER DNS NAME
  • 73. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S E C U R I N G A C C E S S T O A M A Z O N I N T E R F A C E V P C E N D P O I N T S S u b n e t 1 0 . 0 . 1 . 0 / 2 4 Availability Zone A S u b n e t : 1 0 . 0 . 2 . 0 / 2 4 Availability Zone B S u b n e t : 1 0 . 0 . 3 . 0 / 2 4 Availability Zone C S e c u r i t y G r o u p V P C C I D R : 1 0 . 0 . 0 . 0 / 1 6
  • 74. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. USE CASES FOR INTERFACE VPC ENDPOINTS • Endpoint consumers can establish private connectivity to Amazon services • Customers can share internal services between VPCs, both within a single AWS account and between AWS accounts • Partners can deliver services to their customers’ VPCs, or on-premises networks via Direct Connect
  • 75. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A. YOU ARE UNABLE TO CONNECT TO ENDPOINTS IN ANOTHER REGION B. ENDPOINTS CANNOT BE ACCESSED ACROSS A VPN THAT USES AMAZON VGW C. TRAFFIC CANNOT BE ORIGINATED BY SERVICE PROVIDERS D. TCP TRAFFIC ONLY THINGS TO NOTE
  • 76. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. WHERE WE ARE Public-facing web apps Internal-only apps What’s next? VPN connection Customer network Customer Gateway (CGW)
  • 77. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ONE VPC A R C 3 0 4 TWO VPC THREE VPC MORE!
  • 78. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SO WHY NOT ONE BIG VPC? Subnet Availability Zone A IPv4 Subnet Availability Zone B IPv4 Subnet Availability Zone C IPv4 Subnet Availability Zone A IPv4 Subnet Availability Zone B IPv4 Subnet Availability Zone C IPv4
  • 79. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PROD DEV LOGGING & MONITORING CONSIDERATION FOR 1 OR MANY VPCs
  • 80. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PCI APPS HIIPAA NON-REGULATED APPS CONSIDERATION FOR 1 OR MANY VPCs
  • 81. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LEGAL MARKETING SALES CONSIDERATION FOR 1 OR MANY VPCs
  • 82. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PROD DR CONSIDERATION FOR 1 OR MANY VPCs
  • 83. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LEGAL SALES FINANCE App, S3 Access, ELB, VPC Flow Logs, etc… AWS CloudTrail AWS Config VPC Flow Logs Audit Logging &Analytics VPC Amazon RedshiftAmazon EMR S3 Data Lake VPC Endpoints CONSIDERATIONS… ACCOUNT #1111111 ACCOUNT #2222222 ACCOUNT #7777777 ACCOUNT #00000001
  • 84. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SHARED SERVICES VPC DESIGN A R C 3 0 4 VPC VPC VPC VPC VPC
  • 85. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DESIGN Region VPCVPC Customer network Public apps Internal apps
  • 86. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. HA VPN TO VPC VPC HA VPN Pair Availability Zone A iBGP eBGP Customer CIDRs or Default Route eBGP AWS ASN 7224 Re-advertise VPC CIDR via IGP VGW VPC CIDR Customer ASN (Public or Private) CGW1 CGW2 VPN1 Tun1 VPN1 Tun2 Availability Zone A VPN2 Tun1 VPN2 Tun2 Reuse your CGW Public IP to connect to more VPCs Customer network MED MED REGION
  • 87. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC VPC VPC VPC VPC VPC VPC VPC VPC VPC VPC VPC VPC • DNS • Directory • Logging • Monitoring • Security Shared services Customer network REGION
  • 88. EVOLVING DESIGN REQUIREMENTS • Centralize network connectivity to and from cloud • Centralize management, security, and common services • Account owners in control of own VPC resources • Many AWS accounts • Many VPCs • One region
  • 89. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. HUB & SPOKE WITH PEERING VPC • DNS • Directory • Logging • Monitoring • SecurityShared services VPC Shared services VPC VPC Customer network Spoke VPC Spoke VPC Spoke VPCSpoke VPC Spoke VPC Spoke VPC REGION VPC VPC VPC VPC VPC VPC
  • 90. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC PEERING Customer network VPC Hub VPC Private subnet VPC Spoke VPC Public subnet 10.2.0.0/1610.1.0.0/16 Private subnet Shared services 10.2.22.0/24 10.1.11.0/24 REGION Private Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 PCX-1 Private Route Table Destination Target 10.2.0.0/16 Local 10.1.11.0/24 PCX-1
  • 91. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EDGE-TO-EDGE ROUTING VPC Hub VPC Private subnet VPC Spoke VPC Public subnet 10.2.0.0/1610.1.0.0/16 Private subnet Shared services 10.2.22.0/24 10.1.11.0/24 172.16.0.0/16 Customer network Private Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 PCX-1 Private Route Table Destination Target 10.2.0.0/16 Local 10.1.11.0/24 PCX-1 172.16.0.0/16 PCX-1 REGION
  • 92. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EDGE-TO-EDGE ROUTING VIA PROXY VPC Hub VPC Private subnet VPC Spoke VPC Proxy subnets 10.2.0.0/1610.1.0.0/16 PCX-1 10.2.22.0/24 Internal Network Load Balancer Proxy fleet Internet Public services S3 VPC Customer network Proxy Route Table Destination Target 10.1.0.0/16 local 10.2.0.0/16 PCX-1 172.16.0.0/16 VGW Private Route Table Destination Target 10.2.0.0/16 Local 10.1.0.0/16 PCX-1 Proxy Route Table Destination Target 10.1.0.0/16 Local 10.2.0.0/16 PCX-1 172.16.0.0/16 VGW 0.0.0.0/0 IGW S3 Prefix List VPCE
  • 93. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PROXY IN PRACTICE Customer network Availability Zone A Private subnet Public subnet Private subnet Network Load Balancer Shared services Internet VPC Auto Scaling proxy fleet Public servicesS3 PCX-1 Availability Zone B Private subnet Public subnet Private subnet Network Load Balancer Shared services Auto Scaling proxy fleet Spoke VPC VPC Private subnet Hub VPC
  • 94. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Private subnet Public subnet Private subnet Network Load Balancer Shared services VPC Auto Scaling proxy Fleet Public servicesS3 PCX-1 Availability Zone B Private subnet Public subnet Private subnet Network Load Balancer Bastion host Auto Scaling proxy fleet Spoke VPC VPC Private subnet Hub VPC Customer network PROXY IN PRACTICE
  • 95. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SHARED SERVICES HUB: TO DO LIST • Use IAM to restrict spoke AWS accounts from altering network • Create a NetOps IAM role in all accounts: https://aws.amazon.com/blogs/security/how-to-assign-permissions-using-new-aws- managed-policies-for-job-functions/ • Enable AWS CloudTrail, AWS Config, and VPC Flow Logs for all accounts • Integrate CloudTrail with CloudWatch Logs and create alarms: https://aws.amazon.com/blogs/aws/cloudtrail-integration-with-cloudwatch-now- available-in-four-more-regions
  • 96. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PRO & CON: SHARED SERVICES HUB & SPOKE • Minimizes on-premises network change • Reduces latency, cost of cloud applications accessing common services • Provides spoke accounts control over own resources • But controls and secures egress traffic from spokes • Security groups work across peers • Cost and management of central proxy layer • Not a transparent proxy • Configuring end devices to use proxy • Restricted to HTTP/S • No transitive networking • Peering data transfer cost
  • 97. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Customer network Availability Zone A Private subnet VPC Availability Zone B Private subnet AWS Lambda Amazon API Gateway Elastic Network Interface VPCVPC VPC VPC Prod hub VPC Internet Hybrid Serverless Amazon Aurora Replica Mobile Application VPC
  • 98. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Legacy Apps Customer network Availability Zone A Private subnet VPC Availability Zone B Private subnet AWS Lambda Amazon API Gateway Elastic Network Interface VPCVPC VPC VPC Prod hub VPC Internet Amazon Aurora Replica Mobile Application VPC Hybrid Serverless
  • 99. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. BRINGING IT ALL BACK A R C 3 0 4
  • 100. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. us-east-2 VPC VPC VPC VPC Transit VPC VPC us-west-2 VPC VPC VPC eu-west-1 VPC VPC VPC VPC Transit VPC VPC AWS Network Backbone Provider MPLS Network Branch Branch NA HQ VPC VPC VPC VPC VPC VPC Chicago DX AP HQ London DX ap-northeast-1 VPC VPC VPC VPC Transit VPC VPC EU HQ Tokyo DX You could do this
  • 101. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. us-east-2 VPC VPC VPC NA HQ Chicago DX London DX ap-northeast-1 VPC VPC VPC VPC EU HQ us-west-2 VPC VPC VPC eu-east-2 VPC VPC VPC VPC VPC VPC Tokyo DX Amazon Public Services GLOBALLY PRIVATE VIF PUBLIC VIF Shared Services VPC Shared Services VPC Shared Services VPC DX GATEWAY T O MANY APAC HQ INTER-REGION VPC PEER VPC PEER
  • 102. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON DIRECT CONNECT GATEWAY N E W
  • 103. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON DIRECT CONNECT GATEWAY • # of DX Gateways (Global) : Default: 200 • # of VIF attachments per DX Gateway : Default: 30 • # of VGW associations per DX Gateway : Default: 10 LIMITS • “Global” Object • Logical grouping of VGW/VPC attachments and private virtual Interfaces • VGWs and VIFs can be in any region • Provides connectivity between each VIF and all attached VPCs
  • 104. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC VPC VPC VPC Private VIFs & AWS Direct Connect (DX) Customer network AWS Direct Connect location Private virtual interface (VIF) to VGW • 1 PVI per VGW • 1 BGP ASN • 1 802.1Q VLAN Tag • 1 BGP MD5 key Private fiber connection One or multiple 50-500 Mbps, 1 Gbps or 10 Gbps pipes Region PRIVATE VIF BGP SESSION WITH EACH VGW
  • 105. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC US-EAST-1 DX Connection VPC VPC PRIVATEVIF VPC DX Location in Oregon US-EAST-1 DX Gateway VPC VPC PRIVATE VIF VPC EU-WEST-1 VPC EU-WEST-1 • 1 PVIF Configuration needed to reach multiple VPCs • No limitation on PVIF Creation • BGP Session between customer network and GW • 1 PVIF per VPC VGW • PVIF limited by Bandwidth • BGP Session between VGW & Customer Network Associated
  • 106. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Direct Connect Gateway MED VPC ROUTES AS_PATH_PREPEND ONLY CORP NETWORK ROUTES 172.16.0.0/16 PRIVATE VIF ALL VPC ROUTES CORPORATE NETWORK Main Route Table Destination Target 10.30.0.0/16 Local 172.16.0.0/16 Local 10.30.0.0/1610.20.0.0/1610.10.0.0/16 Main Route Table Destination Target 10.10.0.0/16 Local 172.16.0.0/16 Local Main Route Table Destination Target 10.20.0.0/16 Local 172.16.0.0/16 Local 10.10.0.0/16 10.20.0.0/16 10.30.0.0/16 172.16.0.0/16 10.10.0.0/16
  • 107. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC Private Route Table Destination Target 10.1.0.0/16 Local 172.160.0/16 VGW create-direct-connect-gateway --direct-connect-gateway-name abcd-GW --amazon-side-asn 65555 STEP 1. Create a Direct Connect Gateway STEP 2. Associate VPCs with Your Direct Connect GW STEP 3. Build Private VIFs to Your Gateway associate Name: My-DX-GW BGP ASN: 65500 Private VIF Provider MPLS Network Corporate HQ 172.160.0/16 10.1.0.0/16 create-direct-connect-gateway- association --direct-connect-gateway-id abcd1234-d --virtual-gateway-id vgw-1234567 BGP ASN: 65505
  • 108. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC VPC VPC VPC LONDON HODX LOCATION LONDON Private fiber connection One or multiple 50–500 Mbps, 1 Gbps or 10 Gbps pipes US-EAST-1 AP-SOUTH-1 VPC EU-WEST-1 VPC VPC NORTHERN VA, USA DX LOCATION NORTHERN VA PRIVATE VIF PRIVATE VIF
  • 109. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. LONDON HO VPC VPC VPC VPC VPC LONDON HODX LOCATION LONDON Private fiber connection One or multiple 50–500 Mbps, 1 Gbps or 10 Gbps pipes US-EAST-1 DX Gateway AP-SOUTH-1 VPC EU-WEST-1 VPC VPC NORTHERN VA, USA DX LOCATION NORTHERN VA PRIVATE VIF PRIVATE VIF
  • 110. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC US-WEST-2 / OREGON VPC VPC EU-WEST-1 PRIVATE VIF Oregon DX Location DX Gateway VPCE- 2222.FOO.AMAZON.COM EC2 EC2 EC2 VPC VPC ACCOUNT-B ACCOUNT-A Customer network ACCOUNT-A ACCOUNT-A North American Office US-WEST-2 / OREGON INTER-REGION VPC PEERING CONNECTION
  • 111. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC US-WEST-2 / OREGON VPC VPC EU-WEST-1 PRIVATE VIF DX Gateway VPCE- 2222.FOO.AMAZON.COM EC2 EC2 EC2 VPC VPC ACCOUNT-B ACCOUNT-A Customer network ACCOUNT-A ACCOUNT-A North American Office US-WEST-2 / OREGON INTER-REGION VPC PEERING CONNECTION PRIVATE VIF ACCOUNT-B Oregon DX Location
  • 112. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Leverages Amazon Global Network Backbone • Multiple VIF attachments to a gateway • Multiple VGW/VPC attachments to a gateway • VIFs and VGWs can be in any region • Single account at launch • VIF, DX Gateway, and VGW must have same account • VPC CIDRs cannot overlap • A VGW can only be associated to a single DX Gateway • CloudHub is not supported • VPN Failover is supported Pro & Con: Direct Connect GW
  • 113. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. GREAT! BUT I ONLY HAVE VPNs BETWEEN MY DC & AWS W H A T A R E M Y O P T I O N S F O R S I M P L I F I C A T I O N ?
  • 114. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC MASS TRANSIT A R C 3 0 4
  • 115. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DESIGN REQUIREMENTS • Centralize and minimize network connections • Allow end-to-end routing from cloud to existing networks • Minimal operational overhead • Leverage AWS network • Many AWS accounts • Many VPCs • Many regions
  • 116. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Public subnet VPC Availability Zone B Public subnet Region EC2 VPN EC2 VPN TRANSIT VPC
  • 117. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability Zone A Public subnet VPC Availability Zone B Public subnet Region VPC Spoke VPC Transit VPC VPC Spoke VPC VPC Spoke VPC TRANSIT VPC EC2 VPN EC2 VPN
  • 118. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. VPC VPC VPC VPC VPC VPC VPC Transit VPC Customer network Spoke VPC Spoke VPC Spoke VPCSpoke VPC Spoke VPC Spoke VPC Branches Transit VPC Region
  • 119. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://aws.amazon.com/answers/networking/transit-vpc/ TRANSIT VPC
  • 120. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NET402—Deep Dive: AWS Direct Connect and VPNs
  • 121. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EQUINIX Oregon Customer network us-east-1 us-east-2 us-west-1 us-west-2 DI R EC T C ONNEC T I NT ER -R EG I ON C ONNEC T I V I T Y I N US A
  • 122. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. EQUINIX Oregon DI RECT CONNECT GLOB AL I NTER -REGI ON CONNECTI V I TY ?????? ? G O L A B L D I R E C T C O N N E C T I V I T Y • I S I T P O S S I B L E ? • H O W D O Y O U A C H I E V E I T ?
  • 123. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AMAZON DIRECT CONNECT GLOBAL PUBLIC VIFS N E W C R E A T E P U B L I C V I F S T O P U B L I C A W S S E R V I C E S G L O B A L L Y
  • 124. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. D X L O C A T I O N P U B L I C V I F N. Virginia Ohio N. California SAO PAULO Frankfurt IrelandLondon A M E R I C A E U R O P E A S I A Singapore SydneyMumbaiTokyo Seoul Oregon S . A M E R I C A Montreal Customer North American Office B G P A S N 6 5 5 1 5 O h i o R o u t e s A d v e r t i s e d
  • 125. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Be selective in your public network announcements • Filtering public prefix announcements if necessary • Authoritative AWS public IP list available: https://ip-ranges.amazonaws.com/ip-ranges.json • For notification of IP changes, subscribe to SNS topic: arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged AWS DIRECT CONNECT PUBLIC INTERFACE
  • 126. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. I N CONCLUSION
  • 127. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CUSTOMER HOSTED SERVICES VIA PRIVATE LINKS USE DIRECT CONNECT GATEWAY INTRA & INTER REGION VPC PEER LINKS DIRECT CONNECT PUBLIC VIFS TRANSIT VPC
  • 128. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you! A R C 3 0 4 Y O U A R E A W E S O M E !