SlideShare a Scribd company logo
1 of 24
Introduction to AWS VPC 
Gary Silverman 
Certified AWS Solution Architect 
AWS Chicago Meetup
Agenda 
1. VPC Intro & Benefits 
2. VPC Building Blocks 
3. Reference Architecture 
4. VPC Considerations & Best Practices 
5. Wrap-up & Questions 
2 
But first a quick poll …
1 
VPC Intro & Benefits
What is Amazon’s VPC? 
Logically isolated network in the AWS Cloud that you control 
AWS Reference Model 10K Foot View 
“You are here” 
4 
Internet 
AWS 
VPC
5 
Why use VPC? 
 Control of network architecture 
 Topology & subnet architecture, IP address 
ranges, routing, & gateways 
 Further secure your resources 
 Egress sec groups, routing rules, & NACL’s 
 Evolving EC2 feature set 
 Multiple NIC’s 
 Modifiable security groups on instances 
 Static Private IP Address 
 T2 instances exclusively in VPC 
 Enables Hybrid Cloud architectures 
 Extend your on-prem network into the AWS 
cloud 
 Privately Internetwork with other 
organizations 
 VPC Peering 
 Lines of business, Partners, Communities 
 Intelligently address increasing 
Infrastructure demands 
 Environments, applications, and workloads 
Your workloads can be better integrated and secured using AWS VPC
Who can use VPC? 
You 
 >= 12/04/2013  EC2-VPC 
 < 03/18/2013  EC2-Classic & EC2-VPC 
 EC2 Classic in regions already launched 
 Otherwise, Default VPC in region 
 03/18/2013 < Account registered <= 12/14/2013 
 Depends: Might be EC2-VPC only. 
VPC Cost = $0 
 VPN $0.05/hr 
VPC Enabled Services 
EC2 (incl. Dedicated instances) 
AutoScaling 
Elastic Load Balancer 
RDS 
RedShift 
Elastic Map Reduce 
ElasticCache 
Elastic Beanstalk 
Data Pipeline 
6
2 
VPC Building Blocks
VPC Topology 
 
 
 
Subnet 
1 
Subnet 2 
Subnet 3 
Subnet 4 
Availability Zone ‘A’ Availability Zone ‘B’ 
8 
us-west-2
9 IP Address Blocks 
Shape private network 
Select VPC network size 
 CIDR/16 down to CIDR/28 
 Select IP prefix 
Partition network space 
 Subnet / instance ratio 
 AWS reserves 5 addr per subnet 
VPC VPC 
CIDR/16 
~65536 Addresses 
CIDR/28 
~16 
Addresses 
VPC is a private network in AWS only 
CIDR = Classless Inter-domain Routing 
Coarse Grained Control Fine Grained Control
VPC Example: Topology + IP Address Blocks 
158.16.45.12 
Availability Zone ‘A’ Availability Zone ‘B’ 
 
 
 
10.0.0.0/24 
10.0.1.0/24 
us-west-2 
10.0.0.0/16 
10.0.2.0/24 
10.0.3.0/24 
10.0.0.5 
10.0.1.2 
10.0.2.52 
10.0.3.101 
10.0.sub.host 
10.0.2.52 
158.16.45.12 
Instance 
Private IP 
Public IP 
256 
256 
Network 
Subnets 
Addr per Subnet 
10
Gateways VPN’s 
11 
VPC Access 
 Internet Gateway (IGW) 
 Ingress & egress internet access 
 Virtual Private Gateway (VPG) 
 AWS side of secure VPN connection 
 Customer Gateway (CG) 
 Customer side of VPN connection 
 Direct Connect 
 Dedicated & isolated bandwidth to AWS 
 No internet 
 HA connectivity supported 
 Hardware based VPN 
 On-prem device to AWS over internet 
 Major brands: Cisco, Juniper, & generic 
supported 
 HA connectivity supported (& 
recommended)
VPC Gateways & Hardware VPN 
 IGW 
 Internet access 
 Access to regional AWS Services (e.g. S3, DynamoDB) 
 Virtual Private Gateway & Customer Gateway 
 Redundant Connections for High availability 
 IPSec secure tunnel 
12 
Internet 
On-prem 
VPN 
Internet 
DynamoDB
AWS Direct Connect 
 Private connectivity between your site & VPC (e.g. not over Internet) 
 Secure IPSec connection 
 QOS: 1 Gbps or 10 Gbps fiber cross connect 
 Consistent Network Performance 
 Highly Available, redundant connectivity 
Customer Network 
AWS Direct 
Connect Location 
Customer WAN 
13 
Internet
Routing Traffic 
Determines where network traffic is directed 
 Route tables 
 Main 
 Custom 
 Optionally contain Gateways targets 
 Route table association 
 Main the default 
 1 to N relationship 
 Subnet associations 
 Public Subnet 
 Routes through IGW 
 Private Subnet 
 Does not route through IGW 
 NATs may be used 
14 
NAT 
Public Subnet 
Private Subnet 2 
Customer 
10.0.0.0/16 
Private Subnet 1 
Custom Route Table
15 VPC Peering 
Inter-VPC Routing 
18.52.0.0/16 
PCX-1 
172.16.0.0/16 10.0.0.0/16 
 Features 
 Topology flexibility 
 Same or another AWS Account 
 Additional dimension of isolation 
 Considerations 
 Single Region only 
 No overlapping network addresses 
 No transitive peering property
VPC Network Controls 
 VPC Security Groups 
 Resource level traffic firewall (instance, ELB, etc.) 
 Ingress & Egress 
 Stateful 
 Return traffic always allowed 
 Network Access Control Lists 
 Source and Protocol filtering 
 Subnet level traffic firewall 
 Separate Inbound & Outbound rule set 
 Stateless 
 Traffic strictly filtered 
16 
Web 
(HTTP) 
Security Group Firewall 
Load 
Balancer 
Security Group Firewall 
Security Group Firewall 
DB 
Server 
3306 
Web 
Server 
Web 
Server 
NACL (3306, 49152-65535) 
VPC Security Group 
NACL Ruleset
VPC Network Control Example 
 Tiered Security Groups 
 Restrict ingress Source IP to ELB_SG for Web Tier 
 NACL Rules 
 Block all inbound traffic to Private Subnet except 3306 or 22 
 Block all outbound traffic from Private Subnet except 80, 443, & 49152+ 
17 
Public Subnet Private Subnet 
Port 3306 packets 
Availability Zone ‘A’ 
Port: 80 
Port: 80 
Port 23 packets 
NACL: 
Source IP: 10.0.12.0/24 
IN=3306, 22 
OUT=80, 443, 49152-65535 
ELB_SG 
Port: 23 
WebApp_SG 
10.0.12.0/24 
DB_SG
3 
Reference Architecture
Reference Architecture: HA Web App with VPN 
19 
Availability Zone ‘B’ 
DB Tier 
NACL: 
Source IP: 10.0.[2|12].0/24 
IN=3306, 22 
OUT=80, 443, 3306, 49152-65535 
us-west-2 10.0.0.0/16 
10.0.12.0/24 
Web/App Tier 
10.0.13.0/24 
NAT 
ELB Tier 
10.0.11.0/24 
Availability Zone ‘A’ 
DB Tier 
10.0.2.0/24 
Web/App Tier 
10.0.3.0/24 
NAT 
ELB Tier 
10.0.1.0/24 
On-prem
4 
Considerations & Best Practices
VPC Considerations 
Topic Tradeoff Consideration 
Environments Segregate at VPC or subnet level? 
Hybrid Cloud Private or Internet based VPN connectivity? 
Network Topology Subnets with large # instances / NAT bottlenecks 
Network Auditing Control, monitor, filter outbound traffic ? 
21
Best Practice 
 Use VPC! 
 Plan your Network 
 Subnet strategy, avoid overlapping CIDR blocks 
 Reserve address space (subnets and instance addresses) across AZ’s for future expansion 
 Control your Network 
 Align subnets to Tiers (e.g. DMZ/proxy, ELB, Web/App, DB) 
 Leverage appropriate control per tier (subnet tiering, NACLs, etc…) 
 Everything in private subnets by default 
 Only ELB or Filter/monitoring solutions in Public Subnets 
 Secure IGW usage 
 Don’t add IGW to main routing table 
 Minimize use of IGW enabled Custom route table(s) 
 Minimize subnet size holding NAT or internet facing proxy services (e.g. Squid) 
 Use IAM for Access Control 
 Supplement with AWS Marketplace Solutions 
22
5 
Wrap-up & Questions
Gary Silverman 
Gary.Mail.Mba@gmail.com 
@Tdream 
linkedIn.com/in/garysilvermanmba 
Thank You! 
24

More Related Content

What's hot

Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Amazon Web Services
 

What's hot (20)

Amazon Virtual Private Cloud (VPC) - Networking Fundamentals and Connectivity...
Amazon Virtual Private Cloud (VPC) - Networking Fundamentals and Connectivity...Amazon Virtual Private Cloud (VPC) - Networking Fundamentals and Connectivity...
Amazon Virtual Private Cloud (VPC) - Networking Fundamentals and Connectivity...
 
Deep dive into AWS IAM
Deep dive into AWS IAMDeep dive into AWS IAM
Deep dive into AWS IAM
 
AWS networking fundamentals
AWS networking fundamentalsAWS networking fundamentals
AWS networking fundamentals
 
Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)Deep Dive - Amazon Virtual Private Cloud (VPC)
Deep Dive - Amazon Virtual Private Cloud (VPC)
 
Amazon Virtual Private Cloud
Amazon Virtual Private CloudAmazon Virtual Private Cloud
Amazon Virtual Private Cloud
 
Amazon Virtual Private Cloud (VPC)
Amazon Virtual Private Cloud (VPC)Amazon Virtual Private Cloud (VPC)
Amazon Virtual Private Cloud (VPC)
 
AWS Web Application Firewall and AWS Shield - Webinar
AWS Web Application Firewall and AWS Shield - Webinar AWS Web Application Firewall and AWS Shield - Webinar
AWS Web Application Firewall and AWS Shield - Webinar
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Intro to Amazon ECS
Intro to Amazon ECSIntro to Amazon ECS
Intro to Amazon ECS
 
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
Webinar AWS 201 - Using Amazon Virtual Private Cloud (VPC)
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
AWS IAM and security
AWS IAM and securityAWS IAM and security
AWS IAM and security
 
Deploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control TowerDeploy and Govern at Scale with AWS Control Tower
Deploy and Govern at Scale with AWS Control Tower
 
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...Using AWS Control Tower to govern multi-account AWS environments at scale - G...
Using AWS Control Tower to govern multi-account AWS environments at scale - G...
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Getting Started with Amazon EC2
Getting Started with Amazon EC2Getting Started with Amazon EC2
Getting Started with Amazon EC2
 
AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2) AWS Elastic Compute Cloud (EC2)
AWS Elastic Compute Cloud (EC2)
 
Deep Dive on AWS Lambda
Deep Dive on AWS LambdaDeep Dive on AWS Lambda
Deep Dive on AWS Lambda
 
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
Amazon CloudWatch Tutorial | AWS Certification | Cloud Monitoring Tools | AWS...
 
AWS VPC.pdf
AWS VPC.pdfAWS VPC.pdf
AWS VPC.pdf
 

Viewers also liked

AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecture
wlscaudill
 
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web ServicesAmazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Robert Wilson
 

Viewers also liked (10)

AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecture
 
Enabling Broad Organisational Transformation through the Adoption of AWS
Enabling Broad Organisational Transformation through the Adoption of AWSEnabling Broad Organisational Transformation through the Adoption of AWS
Enabling Broad Organisational Transformation through the Adoption of AWS
 
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web ServicesAmazon Virtual Private Cloud VPC Architecture AWS Web Services
Amazon Virtual Private Cloud VPC Architecture AWS Web Services
 
What is AWS?
What is AWS?What is AWS?
What is AWS?
 
AWS vs. Azure
AWS vs. AzureAWS vs. Azure
AWS vs. Azure
 
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature MappingMicrosoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
Microsoft Azure vs Amazon Web Services (AWS) Services & Feature Mapping
 
Introduction to Amazon Web Services
Introduction to Amazon Web ServicesIntroduction to Amazon Web Services
Introduction to Amazon Web Services
 
Overview of Amazon Web Services
Overview of Amazon Web ServicesOverview of Amazon Web Services
Overview of Amazon Web Services
 
Know Before You Go - AWS Online Tech Talks
Know Before You Go - AWS Online Tech TalksKnow Before You Go - AWS Online Tech Talks
Know Before You Go - AWS Online Tech Talks
 
AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)AWS 101: Cloud Computing Seminar (2012)
AWS 101: Cloud Computing Seminar (2012)
 

Similar to Introduction to AWS VPC, Guidelines, and Best Practices

AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and EasilyAWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
akramemohemat
 
Brk30176 enterprise class networking in azure
Brk30176 enterprise class networking in azureBrk30176 enterprise class networking in azure
Brk30176 enterprise class networking in azure
Abou CONDE
 

Similar to Introduction to AWS VPC, Guidelines, and Best Practices (20)

Creating Your Virtual Data Center
Creating Your Virtual Data CenterCreating Your Virtual Data Center
Creating Your Virtual Data Center
 
Creating a Virtual Data Center
Creating a Virtual Data CenterCreating a Virtual Data Center
Creating a Virtual Data Center
 
Network & Connectivity Fundamentals
Network & Connectivity FundamentalsNetwork & Connectivity Fundamentals
Network & Connectivity Fundamentals
 
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
AWS re:Invent 2016: How Harvard University Improves Scalable Cloud Network Se...
 
An Overview to Networking in the AWS Cloud for Education [Webinar Slides]
An Overview to Networking in the AWS Cloud for Education [Webinar Slides]An Overview to Networking in the AWS Cloud for Education [Webinar Slides]
An Overview to Networking in the AWS Cloud for Education [Webinar Slides]
 
(ARC205) Creating Your Virtual Data Center: VPC Fundamentals and Connectivity...
(ARC205) Creating Your Virtual Data Center: VPC Fundamentals and Connectivity...(ARC205) Creating Your Virtual Data Center: VPC Fundamentals and Connectivity...
(ARC205) Creating Your Virtual Data Center: VPC Fundamentals and Connectivity...
 
Getting Started on AWS
Getting Started on AWS Getting Started on AWS
Getting Started on AWS
 
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWSPLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
PLNOG 17 - Tomasz Stachlewski - Infrastruktura sieciowa w chmurze AWS
 
VPC and DX PoP @ HKG
VPC and DX PoP @ HKGVPC and DX PoP @ HKG
VPC and DX PoP @ HKG
 
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and EasilyAWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
 
AWS VPC
AWS VPCAWS VPC
AWS VPC
 
AWS BaseCamp: AWS Architecture Fundamentals
AWS BaseCamp: AWS  Architecture FundamentalsAWS BaseCamp: AWS  Architecture Fundamentals
AWS BaseCamp: AWS Architecture Fundamentals
 
AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and C...
AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and C...AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and C...
AWS re:Invent 2016: Creating Your Virtual Data Center: VPC Fundamentals and C...
 
Brk30176 enterprise class networking in azure
Brk30176 enterprise class networking in azureBrk30176 enterprise class networking in azure
Brk30176 enterprise class networking in azure
 
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
High Availability Application Architectures in Amazon VPC (ARC202) | AWS re:I...
 
Aws Architecture Fundamentals | Dallas
Aws Architecture Fundamentals | DallasAws Architecture Fundamentals | Dallas
Aws Architecture Fundamentals | Dallas
 
(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs(NET406) Deep Dive: AWS Direct Connect and VPNs
(NET406) Deep Dive: AWS Direct Connect and VPNs
 
打破時空藩籬,輕鬆存取您的雲端工作負載
打破時空藩籬,輕鬆存取您的雲端工作負載打破時空藩籬,輕鬆存取您的雲端工作負載
打破時空藩籬,輕鬆存取您的雲端工作負載
 
打破時空藩籬-輕鬆存取您的雲端工作負載
打破時空藩籬-輕鬆存取您的雲端工作負載打破時空藩籬-輕鬆存取您的雲端工作負載
打破時空藩籬-輕鬆存取您的雲端工作負載
 
Creating Your Virtual Data Center - AWS Summit Bahrain 2017
Creating Your Virtual Data Center - AWS Summit Bahrain 2017Creating Your Virtual Data Center - AWS Summit Bahrain 2017
Creating Your Virtual Data Center - AWS Summit Bahrain 2017
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 

Introduction to AWS VPC, Guidelines, and Best Practices

  • 1. Introduction to AWS VPC Gary Silverman Certified AWS Solution Architect AWS Chicago Meetup
  • 2. Agenda 1. VPC Intro & Benefits 2. VPC Building Blocks 3. Reference Architecture 4. VPC Considerations & Best Practices 5. Wrap-up & Questions 2 But first a quick poll …
  • 3. 1 VPC Intro & Benefits
  • 4. What is Amazon’s VPC? Logically isolated network in the AWS Cloud that you control AWS Reference Model 10K Foot View “You are here” 4 Internet AWS VPC
  • 5. 5 Why use VPC?  Control of network architecture  Topology & subnet architecture, IP address ranges, routing, & gateways  Further secure your resources  Egress sec groups, routing rules, & NACL’s  Evolving EC2 feature set  Multiple NIC’s  Modifiable security groups on instances  Static Private IP Address  T2 instances exclusively in VPC  Enables Hybrid Cloud architectures  Extend your on-prem network into the AWS cloud  Privately Internetwork with other organizations  VPC Peering  Lines of business, Partners, Communities  Intelligently address increasing Infrastructure demands  Environments, applications, and workloads Your workloads can be better integrated and secured using AWS VPC
  • 6. Who can use VPC? You  >= 12/04/2013  EC2-VPC  < 03/18/2013  EC2-Classic & EC2-VPC  EC2 Classic in regions already launched  Otherwise, Default VPC in region  03/18/2013 < Account registered <= 12/14/2013  Depends: Might be EC2-VPC only. VPC Cost = $0  VPN $0.05/hr VPC Enabled Services EC2 (incl. Dedicated instances) AutoScaling Elastic Load Balancer RDS RedShift Elastic Map Reduce ElasticCache Elastic Beanstalk Data Pipeline 6
  • 7. 2 VPC Building Blocks
  • 8. VPC Topology    Subnet 1 Subnet 2 Subnet 3 Subnet 4 Availability Zone ‘A’ Availability Zone ‘B’ 8 us-west-2
  • 9. 9 IP Address Blocks Shape private network Select VPC network size  CIDR/16 down to CIDR/28  Select IP prefix Partition network space  Subnet / instance ratio  AWS reserves 5 addr per subnet VPC VPC CIDR/16 ~65536 Addresses CIDR/28 ~16 Addresses VPC is a private network in AWS only CIDR = Classless Inter-domain Routing Coarse Grained Control Fine Grained Control
  • 10. VPC Example: Topology + IP Address Blocks 158.16.45.12 Availability Zone ‘A’ Availability Zone ‘B’    10.0.0.0/24 10.0.1.0/24 us-west-2 10.0.0.0/16 10.0.2.0/24 10.0.3.0/24 10.0.0.5 10.0.1.2 10.0.2.52 10.0.3.101 10.0.sub.host 10.0.2.52 158.16.45.12 Instance Private IP Public IP 256 256 Network Subnets Addr per Subnet 10
  • 11. Gateways VPN’s 11 VPC Access  Internet Gateway (IGW)  Ingress & egress internet access  Virtual Private Gateway (VPG)  AWS side of secure VPN connection  Customer Gateway (CG)  Customer side of VPN connection  Direct Connect  Dedicated & isolated bandwidth to AWS  No internet  HA connectivity supported  Hardware based VPN  On-prem device to AWS over internet  Major brands: Cisco, Juniper, & generic supported  HA connectivity supported (& recommended)
  • 12. VPC Gateways & Hardware VPN  IGW  Internet access  Access to regional AWS Services (e.g. S3, DynamoDB)  Virtual Private Gateway & Customer Gateway  Redundant Connections for High availability  IPSec secure tunnel 12 Internet On-prem VPN Internet DynamoDB
  • 13. AWS Direct Connect  Private connectivity between your site & VPC (e.g. not over Internet)  Secure IPSec connection  QOS: 1 Gbps or 10 Gbps fiber cross connect  Consistent Network Performance  Highly Available, redundant connectivity Customer Network AWS Direct Connect Location Customer WAN 13 Internet
  • 14. Routing Traffic Determines where network traffic is directed  Route tables  Main  Custom  Optionally contain Gateways targets  Route table association  Main the default  1 to N relationship  Subnet associations  Public Subnet  Routes through IGW  Private Subnet  Does not route through IGW  NATs may be used 14 NAT Public Subnet Private Subnet 2 Customer 10.0.0.0/16 Private Subnet 1 Custom Route Table
  • 15. 15 VPC Peering Inter-VPC Routing 18.52.0.0/16 PCX-1 172.16.0.0/16 10.0.0.0/16  Features  Topology flexibility  Same or another AWS Account  Additional dimension of isolation  Considerations  Single Region only  No overlapping network addresses  No transitive peering property
  • 16. VPC Network Controls  VPC Security Groups  Resource level traffic firewall (instance, ELB, etc.)  Ingress & Egress  Stateful  Return traffic always allowed  Network Access Control Lists  Source and Protocol filtering  Subnet level traffic firewall  Separate Inbound & Outbound rule set  Stateless  Traffic strictly filtered 16 Web (HTTP) Security Group Firewall Load Balancer Security Group Firewall Security Group Firewall DB Server 3306 Web Server Web Server NACL (3306, 49152-65535) VPC Security Group NACL Ruleset
  • 17. VPC Network Control Example  Tiered Security Groups  Restrict ingress Source IP to ELB_SG for Web Tier  NACL Rules  Block all inbound traffic to Private Subnet except 3306 or 22  Block all outbound traffic from Private Subnet except 80, 443, & 49152+ 17 Public Subnet Private Subnet Port 3306 packets Availability Zone ‘A’ Port: 80 Port: 80 Port 23 packets NACL: Source IP: 10.0.12.0/24 IN=3306, 22 OUT=80, 443, 49152-65535 ELB_SG Port: 23 WebApp_SG 10.0.12.0/24 DB_SG
  • 19. Reference Architecture: HA Web App with VPN 19 Availability Zone ‘B’ DB Tier NACL: Source IP: 10.0.[2|12].0/24 IN=3306, 22 OUT=80, 443, 3306, 49152-65535 us-west-2 10.0.0.0/16 10.0.12.0/24 Web/App Tier 10.0.13.0/24 NAT ELB Tier 10.0.11.0/24 Availability Zone ‘A’ DB Tier 10.0.2.0/24 Web/App Tier 10.0.3.0/24 NAT ELB Tier 10.0.1.0/24 On-prem
  • 20. 4 Considerations & Best Practices
  • 21. VPC Considerations Topic Tradeoff Consideration Environments Segregate at VPC or subnet level? Hybrid Cloud Private or Internet based VPN connectivity? Network Topology Subnets with large # instances / NAT bottlenecks Network Auditing Control, monitor, filter outbound traffic ? 21
  • 22. Best Practice  Use VPC!  Plan your Network  Subnet strategy, avoid overlapping CIDR blocks  Reserve address space (subnets and instance addresses) across AZ’s for future expansion  Control your Network  Align subnets to Tiers (e.g. DMZ/proxy, ELB, Web/App, DB)  Leverage appropriate control per tier (subnet tiering, NACLs, etc…)  Everything in private subnets by default  Only ELB or Filter/monitoring solutions in Public Subnets  Secure IGW usage  Don’t add IGW to main routing table  Minimize use of IGW enabled Custom route table(s)  Minimize subnet size holding NAT or internet facing proxy services (e.g. Squid)  Use IAM for Access Control  Supplement with AWS Marketplace Solutions 22
  • 23. 5 Wrap-up & Questions
  • 24. Gary Silverman Gary.Mail.Mba@gmail.com @Tdream linkedIn.com/in/garysilvermanmba Thank You! 24

Editor's Notes

  1. Long time AWS Chicago community member, Certified AWS SA, and am excited to provide you an Introduction to Amazon VPC