SlideShare a Scribd company logo
UpScale
13-10-2018
AWS Virtual Private
Cloud (VPC #1)
AWS Riyadh
User Group
Ahmad ElGohary12
@aalgohary85
ELGOHARY AHMAD
aalgohary85@gmail.com
Agenda
• AWS Saudi User Group
• Past and Coming Topics
• Networking Concepts
• AWS VPC Components
• LAB
AWS Riyadh User
Group
• AWS Registered User Group in
Riyadh, Saudi Arabia
• Founded by Ahmed Aziz
• Public Group
• 352 Members
• Connect all AWS Geeks
Past and Coming
Topics
• Storage
• S3
• Compute
• EC2
• Auto Scaling
• Networking
• VPC Session 1
• VPC Session 2
• Route 53
• API Gateway
Past and Coming
Topics Cont’d
• Databases
• RDS
• Dynamo DB
• ElastiCache
• Application Integration
• SNS
• SQS
• SWF
• Management Tools
• Cloud Formation
• Cloud Trail vs Cloud Watch
Past and Coming
Topics Cont’d
• Add-Ons
• Lambda
• Cost Optimization
• Well Architected Framework
• Having Fun with Alexa
• Chatbot
• Machine Learning
7-Layer OSI Model
7-Layer OSI Model Cont’d
7-Layer OSI Model Cont’d
IPv4 vs IPv6
Subnetting
Subnetting Cont’d
NAT and PAT
• Network address
translation (NAT) is a
method of remapping one
IP address space into
another by modifying
network address
information in the IP
header of packets while
they are in transit across a
traffic routing device.
What is Amazon
VPC?
• Amazon VPC is a logically isolated
section of AWS cloud where you
can launch AWS resources in a
virtual network that you define.
• Think of a VPC as a virtual
datacenter in the cloud.
Why do we need a
VPC?
• Control over organization
resources
• Control of security
• Control of traffic between our
services
• Control to keep differing
architectures completely
separate from each other
AWS Default VPC vs
Our VPCs
• CIDR 172.31.0.0/16.
• Reserved by AWS as a default
VPC for any account.
• Our VPC
• Stick to private network
ranges defined in RFC1918
ranges
• 10.0.0.0/8
• 172.16.0.0/12
• 192.168.0.0/16
VPC Creation
• IPv4: Block sizes must be between /16 and /28
• IPv6:
– Amazon assigns /56 IPv6 CIDR block.
– You can not choose the range for IPv6 CIDR block.
• Tenancy:
– Dedicated: Instances launched in this VPC are dedicated tenancy instances
regardless of the tenancy attributes specified at launch.
– Default: Instances launched in this VPC are use the tenancy attribute
specified at launch.
VPC
Creation
Cont’d
Subnet Creation
• Subnet CIDR block sizes must
be between /16 and /28.
• Subnet size can be the same
size as VPC or subset.
• For each subnet, AWS reserves
5 IPs, the first 4 and the final.
• The 3rd IP address is reserved
for a AWS DNS server that
handles all of this IP address
assignment.
Subnet Creation Cont’d
Subnet Auto Assign IP
Route Table
• A route table contains a set of rules, called
routes, that are used to determine where
network traffic is directed.
• Each subnet in the VPC must be associated with
a route table.
• VPC automatically comes with a main route table
that you can modify.
• By default any new subnet is associated with the
main route table.
• A subnet can only be associated with one route
table.
Route Table
Creation
Route Table
Subnet
Associations
Internet Gateway
• An internet gateway is a virtual router
that connects a VPC to the internet.
• Private subnets: It can not connect to
the internet.
• Public subnets: It can connect to the
internet.
• A subnet with a Route Table that's not
connected to an internet gateway is
private.
• A subnet that's associated with a Route
Table that's connected to an internet
gateway is public.
Internet Gateway Creation
Attaching IGW to VPC
Adding Route
to Internet
NAT Gateways
• You can use a network address translation
(NAT) gateway to enable instances in a
private subnet to connect to the internet or
other AWS services, but prevent the
internet from initiating a connection with
those instances.
• NAT GW is created in the public subnet. It
requires Elastic IP.
• An Elastic IP address is a public IPv4
address, which is reachable from the
internet.
• A route to NAT GW is added in the private
route table.
NAT GW Creation
Network Access Control Lists
• A network ACL is an optional layer of security that
acts as a firewall for controlling traffic in and out of
a subnet.
• A default ACL is created for each new VPC that
allows traffic in and out by default.
• A Network ACL can apply to many subnets, but a
subnet can only belong to one Network ACL.
• Network ACLs are stateless.
Network ACL Creation
Network ACL Inbound Rules
Network ACL Outbound Rules
Network ACL Subnet Associations
Security Groups
• A security group acts as a
virtual firewall for your
instance to control
inbound and outbound
traffic.
• When you launch an
instance in a VPC, you can
assign up to five security
groups to the instance.
• Security Groups are
Stateful.
Security Group Creation
Security Group Inbound Rules
Security Group Outbound Rules
LAB: Building Your First Amazon VPC
• https://qwiklabs.com/focuses/359?parent=catalog
• Create an Amazon VPC
• Create public and private subnets
• Create an Internet Gateway
• Create a Route Table and add a route to the Internet
• Create a security group for your web server to only allow HTTP traffic
• Create a security group for your MySQL RDS instance to only allow
MySQL traffic from your public subnets
• Deploy a web server and a MySQL RDS instance
• Configure your application to connect to your MySQL RDS instance
References
• https://docs.aws.amazon.com/
• https://acloud.guru/
• https://start.jcolemorrison.com/aws-vpc-core-
concepts-analogy-guide/
• https://qwiklabs.com/
• http://jodies.de/ipcalc
• https://www.ultratools.com/tools/ipv6CIDRToRange
Questions
See You Next Meetup
AWS Riyadh User Group

More Related Content

PDF
Amazon relational database service (rds)
PPTX
Containers on AWS
PPTX
EC2 and S3 Level 100
PPTX
AWS Messaging
PPTX
Amazon Virtual Private Cloud - VPC 2
PPTX
AWS Cloudformation Session 01
PPTX
2016 Utah Cloud Summit: AWS S3
PPTX
2016 Utah Cloud Summit: AWS Lambda and API Gateway
Amazon relational database service (rds)
Containers on AWS
EC2 and S3 Level 100
AWS Messaging
Amazon Virtual Private Cloud - VPC 2
AWS Cloudformation Session 01
2016 Utah Cloud Summit: AWS S3
2016 Utah Cloud Summit: AWS Lambda and API Gateway

Similar to Amazon Virtual Private Cloud - VPC 1 (20)

PPTX
AWS VPC & Networking basic concepts
PPTX
AWS network services
PPTX
AWS VPC Zero to Hero in 30 Minutes.pptx
PPTX
Vpc (virtual private cloud)
PDF
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
DOCX
AWS virtual private clould
DOCX
Virtual private cloud fundamentals
PPTX
Amazon Virtual Private Cloud (VPC)
PPTX
Virtual Private Cloud(subnet,routetable).pptx
PDF
Amazon virtual private cloud (vpc)
PPTX
Networking Best Practices for Your Serverless Applications
PDF
AWS Virtual Private Cloud
PDF
Mastering AWS Networking: A Practical Guide to VPCs and Cloud Connectivity
PDF
Criando o seu datacenter virtual vpc e conectividade
PPTX
Introduction to AWS VPC, Guidelines, and Best Practices
PDF
An Introduction to Amazon VPC
PPTX
Pitt Immersion Day Module 3 - networking in AWS
PDF
Creating Your Virtual Data Center
PPTX
Productos de redes con AWS
AWS VPC & Networking basic concepts
AWS network services
AWS VPC Zero to Hero in 30 Minutes.pptx
Vpc (virtual private cloud)
AWS VPC NOTES _ LEARN AWS EFFECTIVELY and Easily
AWS virtual private clould
Virtual private cloud fundamentals
Amazon Virtual Private Cloud (VPC)
Virtual Private Cloud(subnet,routetable).pptx
Amazon virtual private cloud (vpc)
Networking Best Practices for Your Serverless Applications
AWS Virtual Private Cloud
Mastering AWS Networking: A Practical Guide to VPCs and Cloud Connectivity
Criando o seu datacenter virtual vpc e conectividade
Introduction to AWS VPC, Guidelines, and Best Practices
An Introduction to Amazon VPC
Pitt Immersion Day Module 3 - networking in AWS
Creating Your Virtual Data Center
Productos de redes con AWS
Ad

More from AWS Riyadh User Group (15)

PDF
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
PDF
AWS reinvent 2019 recap - Riyadh - Database and Analytics - Assif Abbasi
PDF
AWS reinvent 2019 recap - Riyadh - Network and Security - Anver Vanker
PDF
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
PPTX
Demistifying serverless on aws
PDF
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
PDF
Amazon SageMaker Build, Train and Deploy Your ML Models
PDF
AWS Technical Day Riyadh Nov 2019 - The art of mastering data protection on aws
PDF
AWS Technical Day Riyadh Nov 2019 - Scaling threat detection and response in aws
PDF
AWS Technical Day Riyadh Nov 2019 [Migration]
PPTX
PPTX
Devops on AWS
PPTX
Blockchain on AWS
PPTX
AWS AI Services
PPTX
AWS Cloud Security
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
AWS reinvent 2019 recap - Riyadh - Database and Analytics - Assif Abbasi
AWS reinvent 2019 recap - Riyadh - Network and Security - Anver Vanker
AWS reinvent 2019 recap - Riyadh - AI And ML - Ahmed Raafat
Demistifying serverless on aws
Cutting to the chase for Machine Learning Analytics Ecosystem & AWS Lake Form...
Amazon SageMaker Build, Train and Deploy Your ML Models
AWS Technical Day Riyadh Nov 2019 - The art of mastering data protection on aws
AWS Technical Day Riyadh Nov 2019 - Scaling threat detection and response in aws
AWS Technical Day Riyadh Nov 2019 [Migration]
Devops on AWS
Blockchain on AWS
AWS AI Services
AWS Cloud Security
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Modernizing your data center with Dell and AMD
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
KodekX | Application Modernization Development
Understanding_Digital_Forensics_Presentation.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Spectral efficient network and resource selection model in 5G networks
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Mobile App Security Testing_ A Comprehensive Guide.pdf
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Big Data Technologies - Introduction.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
GamePlan Trading System Review: Professional Trader's Honest Take
Advanced Soft Computing BINUS July 2025.pdf
Modernizing your data center with Dell and AMD
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf
KodekX | Application Modernization Development

Amazon Virtual Private Cloud - VPC 1

  • 1. UpScale 13-10-2018 AWS Virtual Private Cloud (VPC #1) AWS Riyadh User Group Ahmad ElGohary12 @aalgohary85 ELGOHARY AHMAD aalgohary85@gmail.com
  • 2. Agenda • AWS Saudi User Group • Past and Coming Topics • Networking Concepts • AWS VPC Components • LAB
  • 3. AWS Riyadh User Group • AWS Registered User Group in Riyadh, Saudi Arabia • Founded by Ahmed Aziz • Public Group • 352 Members • Connect all AWS Geeks
  • 4. Past and Coming Topics • Storage • S3 • Compute • EC2 • Auto Scaling • Networking • VPC Session 1 • VPC Session 2 • Route 53 • API Gateway
  • 5. Past and Coming Topics Cont’d • Databases • RDS • Dynamo DB • ElastiCache • Application Integration • SNS • SQS • SWF • Management Tools • Cloud Formation • Cloud Trail vs Cloud Watch
  • 6. Past and Coming Topics Cont’d • Add-Ons • Lambda • Cost Optimization • Well Architected Framework • Having Fun with Alexa • Chatbot • Machine Learning
  • 8. 7-Layer OSI Model Cont’d
  • 9. 7-Layer OSI Model Cont’d
  • 13. NAT and PAT • Network address translation (NAT) is a method of remapping one IP address space into another by modifying network address information in the IP header of packets while they are in transit across a traffic routing device.
  • 14. What is Amazon VPC? • Amazon VPC is a logically isolated section of AWS cloud where you can launch AWS resources in a virtual network that you define. • Think of a VPC as a virtual datacenter in the cloud.
  • 15. Why do we need a VPC? • Control over organization resources • Control of security • Control of traffic between our services • Control to keep differing architectures completely separate from each other
  • 16. AWS Default VPC vs Our VPCs • CIDR 172.31.0.0/16. • Reserved by AWS as a default VPC for any account. • Our VPC • Stick to private network ranges defined in RFC1918 ranges • 10.0.0.0/8 • 172.16.0.0/12 • 192.168.0.0/16
  • 17. VPC Creation • IPv4: Block sizes must be between /16 and /28 • IPv6: – Amazon assigns /56 IPv6 CIDR block. – You can not choose the range for IPv6 CIDR block. • Tenancy: – Dedicated: Instances launched in this VPC are dedicated tenancy instances regardless of the tenancy attributes specified at launch. – Default: Instances launched in this VPC are use the tenancy attribute specified at launch.
  • 19. Subnet Creation • Subnet CIDR block sizes must be between /16 and /28. • Subnet size can be the same size as VPC or subset. • For each subnet, AWS reserves 5 IPs, the first 4 and the final. • The 3rd IP address is reserved for a AWS DNS server that handles all of this IP address assignment.
  • 22. Route Table • A route table contains a set of rules, called routes, that are used to determine where network traffic is directed. • Each subnet in the VPC must be associated with a route table. • VPC automatically comes with a main route table that you can modify. • By default any new subnet is associated with the main route table. • A subnet can only be associated with one route table.
  • 25. Internet Gateway • An internet gateway is a virtual router that connects a VPC to the internet. • Private subnets: It can not connect to the internet. • Public subnets: It can connect to the internet. • A subnet with a Route Table that's not connected to an internet gateway is private. • A subnet that's associated with a Route Table that's connected to an internet gateway is public.
  • 29. NAT Gateways • You can use a network address translation (NAT) gateway to enable instances in a private subnet to connect to the internet or other AWS services, but prevent the internet from initiating a connection with those instances. • NAT GW is created in the public subnet. It requires Elastic IP. • An Elastic IP address is a public IPv4 address, which is reachable from the internet. • A route to NAT GW is added in the private route table.
  • 31. Network Access Control Lists • A network ACL is an optional layer of security that acts as a firewall for controlling traffic in and out of a subnet. • A default ACL is created for each new VPC that allows traffic in and out by default. • A Network ACL can apply to many subnets, but a subnet can only belong to one Network ACL. • Network ACLs are stateless.
  • 35. Network ACL Subnet Associations
  • 36. Security Groups • A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. • When you launch an instance in a VPC, you can assign up to five security groups to the instance. • Security Groups are Stateful.
  • 40. LAB: Building Your First Amazon VPC • https://qwiklabs.com/focuses/359?parent=catalog • Create an Amazon VPC • Create public and private subnets • Create an Internet Gateway • Create a Route Table and add a route to the Internet • Create a security group for your web server to only allow HTTP traffic • Create a security group for your MySQL RDS instance to only allow MySQL traffic from your public subnets • Deploy a web server and a MySQL RDS instance • Configure your application to connect to your MySQL RDS instance
  • 41. References • https://docs.aws.amazon.com/ • https://acloud.guru/ • https://start.jcolemorrison.com/aws-vpc-core- concepts-analogy-guide/ • https://qwiklabs.com/ • http://jodies.de/ipcalc • https://www.ultratools.com/tools/ipv6CIDRToRange
  • 43. See You Next Meetup AWS Riyadh User Group

Editor's Notes

  • #48: You can safely remove this slide. This slide design was provided by SlideModel.com – You can download more templates, shapes and elements for PowerPoint from http://slidemodel.com
  • #49: You can safely remove this slide. This slide design was provided by SlideModel.com – You can download more templates, shapes and elements for PowerPoint from http://slidemodel.com