Networking in AWS
Networking in AWS
Provision a logically isolated section of the AWS Cloud where you can launch AWS
resources in a virtual network that you define.
AWS Cloud
VPC
Amazon EC2 AWS Lambda Amazon RDS Amazon Redshift Amazon Amazon Simple Storage
DynamoDB Service (S3)
VPC 10.0.0.0/16
towards: VPC
• Internet Gateway
Route table
• Virtual Private Gateway Public subnet
• VPC Endpoints
Router
• Direct Connect Private subnet
Route table
• VPC Peering
• AWS Transit Gateway Corporate data center
VPC
VPC
Internet gateway
• Static, Public IPv4 address, associated
with your AWS account Public subnet
• Can be associated with an instance or Private IP: 10.0.0.1 Private IP: 10.0.0.2
Elastic IP: 198.51.100.2 Elastic IP: 198.51.100.2
network interface EC2 EC2
Instance Instance
• Can be remapped to another instance
in your account Private subnet
services access
• Fully managed by AWS EC2 NAT gateway
Instance
• Highly available
• Up to 10Gbps bandwidth Private subnet
traffic
© 2020, Amazon Web Services, Inc. or its Affiliates.
Can I have one account owning the VPC, and other using it?
Shared VPC
VPC
Create/Modify/Delete:
in their assigned Subnets Subnets
Route Tables
• Each participant pays for their own Network ACL
VPC Peering
Subnet Gama
resources and data transfer costs VPC Endpoints
Internet Gateways
NAT Gateways
• Based on AWS Resource Access Virtual Private Gateways
AWS Account Gama Transit Gateway attachment
Manager, under AWS Organizations VPC Participant
EC2 Instance Lambda function
HTTPS
(TCP 443)
Amazon EC2
• Can be cross referenced “Web Tier”
MySQL
• Works across VPC Peering (TCP 3306)
Security group “DB Tier”
• Only supports allow rules
• Implicit deny all at the end
MySQL DB
© 2020, Amazon Web Services, Inc. or its Affiliates. Amazon Aurora
Can I filter traffic on a subnet level?
0.0.0.0/0
Network Access Control List HTTPS
(TCP 443)
Public subnet
• Inbound and Outbound
• Subnet level inspection Network
access control
• Optional level of security list Amazon EC2
connectivity EC2
Instance
VPC Endpoint
• Traffic does not leave the AWS
Amazon
network. Private subnet
Simple Storage Service (S3)
accounts …
VPC
• One VGW (Virtual Private Gateway)
Availability Zone 1 Availability Zone 2
per VPC
• Redundant IPSec VPN Tunnels
• Terminating in different AZs VGW (Virtual Private Gateway)
• IPSec
• AES 256-bit encryption VPN Connection
• SHA-2 hashing
• Scalable Internet
Corporate
• BGP or Static Routing data center
Customer
gateway
• Customer Gateways
• Direct Connect Locations Corporate
data center
Corporate
data center
Corporate
data center AWS Direct Connect
Customer
gateway
© 2020, Amazon Web Services, Inc. or its Affiliates.
How to connect to multiple AWS Regions/Accounts over DX?
AWS Direct Connect Gateway AWS Cloud
Region 1 Region 2
• Transit VIF
• Connects to a AWS Transit
Gateway
AWS Transit Gateway
• Simplify your network architecture
and management overhead
AWS Direct Connect
• Create a hub-and-spoke model that Gateway
spans multiple
Direct Connect
• VPCs Location
AWS DX Device
• Regions
Corporate
• AWS accounts data center
Customer
© 2020, Amazon Web Services, Inc. or its Affiliates. gateway
Traffic Distribution
Internet gateway
• Containers
• IP address EC2 EC2 EC2 EC2
Instance Instance Instance Instance
• Multiple Availability Zones
• Scales automatically Elastic Load Balancing (ELB)
Amazon Route 53
• AWS DNS service Main
Yes No
• Domain Registration Site
Healthy
• No DNS switchover required, same IP Region us-east-1 (N. Virginia) Region eu-west-1 (Ireland)
address globally
• Static IP Anycast Elastic Load Balancer Elastic Load Balancer
Service Service