SlideShare a Scribd company logo
1 of 30
Download to read offline
Amazon VPC
best practices 2016
Bogdan Naydenov
23 Feb 2016
#AWSBulgaria User Group
Who am I
Bogdan Naydenov
Senior IT Enterprise Architect - Telerik Platform Services team at Progress
Software
Mostly Operational background with more than 18 years of IT experience
MongoDB DBA
MongoDB Developer
MongoDB Advanced Deployment and Operations
https://www.linkedin.com/in/bnaydenov @BobbyNaydenov
● Static private IP address
● Elastic Network Interfaces: possible to bind multiple Elastic Network Interfaces to a
single instance
● Internal Elastic Load Balancers
● Advanced Network Access Control
● DHCP options
● Predictable internal IP ranges
● Moving NICs and internal IPs between instances
● VPN connectivity
● Heightened security
Introduction to VPC
Practice 1:
Get your Amazon VPC combination right
● Public facing VPC
● Public and Private setup VPC
● Amazon VPC with Public and Private Subnets and Hardware VPN Access
● Amazon VPC with Private Subnets and Hardware VPN Access
● Software based VPN access
Public facing VPC Public and Private setup VPC
Amazon VPC with Public and Private Subnets
and Hardware VPN Access
Practice 2:
Always span your Amazon VPC across multiple
subnets in Multiple Availability zones inside a Region
● This helps is architecting high availability inside your Amazon VPC properly
Practice 3:
Choose your CIDR Blocks
● VPC IP range - /28 netmask (16 IP’s) and /16 netmask (65536 IP’s).
● !! VPC CIDR range can not be changed
● Choose Amazon VPC CIDR range which not overlaps or conflicts with the CIDR
blocks in your On premise/Data center
Practice 4:
Isolate according to your Use case
● Create separate Amazon VPC for Development , Staging and Production
environment - prefer this one
● Create one Amazon VPC with Separate Subnets/Security/Isolated for Production ,
Staging and development.
Practice 5:
Securing Amazon VPC
● Secure your Amazon VPC using Firewall virtual appliance, Web application firewall available from Amazon
Web Services Marketplace.
● You can configure Intrusion Prevention or Intrusion Detection virtual appliances and secure the protocols
and take preventive/corrective actions in your VPC
● Configure VM encryption tools which encrypts your root and additional EBS volumes. The Key can be
stored inside AWS (or) in your Data center outside Amazon Web Services depending on your compliance
needs.
● Enable the CloudTrail to audit in the VPC environments ACL policy's. Enable CloudTrail : Apply anti virus
for cleansing specific EC2 instances inside VPC.
● Configure Site to Site VPN for securely transferring information between Amazon VPC in different regions
or between Amazon VPC to your On premise Data center
● Enable VPC Flow Logs
Practice 6:
Understand Amazon VPC Limits
● VPC and Subnets:
● Gateways:
● Network ACLs:
● Route Tables:
● Security Groups:
● Check all limits here:
http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html
Practice 7:
Use security groups and Network ACLs wisely
● use security groups over Network ACLs inside Amazon VPC wherever applicable for better control
● Security groups are applicable on EC2 instance level
● network ACL is applicable on Subnet level
● Security groups are used for Whitelist mostly
● To blacklist IPs, one can use Network ACLs
Practice 8:
Tier your Security Groups
● Create different security groups for different tiers of your infrastructure architecture inside your VPC.
If you have Web, App, DB, Cache tiers create different security group for each of them.
● Creating tier wise security groups will increase the infrastructure security inside Amazon VPC.
EC2 instances in each tier can talk only on application specified ports and not at all ports.
If you create Amazon VPC security groups for each and every tier/service separately it will be easier to
open a port to a particular service.
● Don't use same security group for multiple tiers of instances, this is a bad practice.
● Open ports for security group instead of IP ranges
Practice 9:
Standardize your Security Group Naming conventions
● Following a security group naming conventions inside Amazon VPC will improve operations/management
for large scale deployments inside VPC. It also avoids manual errors, leaks and saves cost and time
overall.
Good example: Simple ones like Prod_DMZ_Web_SG or Dev_MGMT_Utility_SG
Bad example: EUFA3LXWEBP001- EU Frankfurt AZ 3 Linux Web Server Production 001
Practice 10:
ELB on Amazon VPC
● When using Amazon ELB for Web Applications, put all other EC2 instances( Tiers like App,cache,DB etc)
in private subnets as much possible. Unless there is a specific requirement where instances need outside
world access and EIP attached, put all instances in private subnet only.
● Only ELBs should be provisioned in Public Subnet as secure practice in Amazon VPC environment.
Practice 11:
Control your outgoing traffic in Amazon VPC
● for better security, for the traffic going to internet gateway use software's like Squid or other proxy to restrict
the ports,URL,Domains etc... so that all traffic go through the proxy tier controlled and it also gets logged.
● Using these proxy/security systems we can also restrict the unwanted ports, by doing so, if there is any
security compromise to the application running inside Amazon VPC they can be detected by auditing the
restricted connections captured from the logs. This helps in corrective security measure.
● Enable VPC Flow Logs + CloudWatch
Practice 12:
NEW!! use NAT managed gateways
● Retire your NAT instances and use NAT managed gateway
● NAT managed gateways - introduced on Dec 17 2015
● The gateway has built-in redundancy for high availability.
● Each gateway that you create can handle up to 10 Gbps of bursty TCP, UDP, and ICMP traffic, and is
managed by Amazon.
● You control the public IP address by assigning an Elastic IP Address when you create the gateway.
Practice 13:
Use EIP when needed
● At times you may need to keep a part of your application services to be kept in Public subnet for external
communication. It is recommended practice to associate them with Amazon Elastic IP and whitelist these IP
address in the target services used by them
Practice 14:
Plan your VPN Connections between On-Premise DC to Amazon VPC
● AWS hardware VPN - You can create an IPsec, hardware VPN connection between your VPC and your
remote network
● AWS Direct Connect - AWS Direct Connect provides a dedicated private connection from a remote network
to your VPC.
● AWS VPN CloudHub - If you have more than one remote network (for example, multiple branch offices),
you can create multiple AWS hardware VPN connections via your VPC to enable communication between
these networks
● Software VPN - You can create a VPN connection to your remote network by using an Amazon EC2
instance in your VPC that's running a software VPN appliance.
AWS VPN CloudHub
Practice 15:
Network ACL best practices
● Allow and Deny Network ACL - Create Internet outbound allow and deny network ACL in your VPC.
Example:
First network ACL: Allow all the HTTP and HTTPS outbound traffic on public internet facing subnet.
Second network ACL: Deny all the HTTP/HTTPS traffic. Allow all the traffic to Squid proxy server or any virtual appliance.
● Restricting Network ACL :
Block all the inbound and outbound ports. Only allow application request ports. These are stateless traffic filters that apply to all traffic
inbound or outbound from a Subnet within VPC. AWS recommended Outbound rules
Practice 16:
Use Amazon VPC Peering
● Large Enterprises usually run Multiple Amazon VPC in single region and some of their applications are so
interconnected that they may need to access them privately + securely inside AWS. Example Active
Directory, Exchange, Common business services will be usually interconnected.
● Large Enterprise have different AWS accounts for different business units/teams/departments , at times
systems deployed by some business units in different AWS accounts need to be shared or need to
consume a shared resource privately. Example: CRM , HRMS ,File Sharing etc can be internal and shared.
In such scenarios VPC peering comes very useful.
● Customer can peer their VPC with their core suppliers to have tighter integrated access of their systems.
● Companies offering Infra/Application Managed Services on AWS can now safely peer into customer
Amazon VPC and provide monitoring and management of AWS resources.
Practice 16:
Use Amazon VPC Peering limits
● You cannot create a VPC peering connection between VPCs that have matching or overlapping CIDR
blocks.
● You cannot create a VPC peering connection between VPCs in different regions.
● You have a limit on the number active and pending VPC peering connections that you can have per VPC.
● VPC peering does not support transitive peering relationships; in a VPC peering connection, your VPC will
not have access to any other VPCs that the peer VPC may be paired with. This includes VPC peering
connections that are established entirely within your own AWS account.
● You cannot have more than one VPC peering connection between the same two VPCs at the same time.
● You cannot reference a security group from the peer VPC as a source or destination for ingress or egress
rules in your security group. Instead, reference CIDR blocks of the peer VPC as the source or destination of
your security group's ingress or egress rules.
● An instance's public DNS hostname will not resolve to its private IP address across peered VPCs.
Two VPCs Peered Together Two VPCs Peered Together Three VPCs Peered Together
One VPC Peered With Multiple
VPCs
Multiple VPCs Peered Together
Bonus TIPS:
DNS resolving between Amazon VPC and on-premises networks
● common approach used to address this need is to run DNS servers on Amazon EC2 across multiple
Availability Zones (AZs) and integrate them with private on-premises DNS domains. In many cases, though,
a managed private DNS service (accessible outside of a VPC) with less administrative overhead is
advantageous.
● Using AWS Directory Service Simple AD to forward DNS requests to Route 53
Resolving DNS requests for on-premises resources originating from AWS
http://amzn.to/1XJQ4Ht
● DNS Resolution Between On-Premises Networks and AWS Using AWS Directory Service and Microsoft
Active Directory
http://amzn.to/1X28AKS
Using AWS Directory Service Simple AD
to forward DNS requests to Route 53
Resolving DNS requests for on-premises
resources originating from AWS
DNS Resolution Between On-Premises Networks and
AWS Using AWS Directory Service and Microsoft Active Directory
Resolving DNS requests for on-premises
resources originating from AWS with Microsoft Active Directory
Thank you attending
#AWSBulgaria
Q&A

More Related Content

What's hot

(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...Amazon Web Services
 
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 Web Services
 
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYCSecuring your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYCAmazon Web Services
 
Deep Dive VPC - Pop-up Loft TLV 2017
Deep Dive VPC - Pop-up Loft TLV 2017Deep Dive VPC - Pop-up Loft TLV 2017
Deep Dive VPC - Pop-up Loft TLV 2017Amazon Web Services
 
(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWS(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWSAmazon Web Services
 
(NET201) Creating Your Virtual Data Center: VPC Fundamentals
(NET201) Creating Your Virtual Data Center: VPC Fundamentals(NET201) Creating Your Virtual Data Center: VPC Fundamentals
(NET201) Creating Your Virtual Data Center: VPC FundamentalsAmazon Web Services
 
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 ServicesRobert Wilson
 
AWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro TipsAWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro TipsShiva Narayanaswamy
 
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...Amazon Web Services
 
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013Amazon Web Services
 
(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 VPNsAmazon Web Services
 
AWS Summit Auckland - Fundamentals of Networking in AWS
AWS Summit Auckland - Fundamentals of Networking in AWSAWS Summit Auckland - Fundamentals of Networking in AWS
AWS Summit Auckland - Fundamentals of Networking in AWSAmazon Web Services
 
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 Web Services
 
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...Amazon Web Services
 
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014Amazon Web Services
 
AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecturewlscaudill
 

What's hot (19)

(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...
 
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)
 
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYCSecuring your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
Securing your AWS Resources with Amazon VPC - AWS Summit 2012 - NYC
 
Deep Dive VPC - Pop-up Loft TLV 2017
Deep Dive VPC - Pop-up Loft TLV 2017Deep Dive VPC - Pop-up Loft TLV 2017
Deep Dive VPC - Pop-up Loft TLV 2017
 
(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWS(NET405) Build a Remote Access VPN Solution on AWS
(NET405) Build a Remote Access VPN Solution on AWS
 
(NET201) Creating Your Virtual Data Center: VPC Fundamentals
(NET201) Creating Your Virtual Data Center: VPC Fundamentals(NET201) Creating Your Virtual Data Center: VPC Fundamentals
(NET201) Creating Your Virtual Data Center: VPC Fundamentals
 
Aws VPC
Aws VPCAws VPC
Aws VPC
 
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
 
AWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro TipsAWS Connectivity, VPC Design and Security Pro Tips
AWS Connectivity, VPC Design and Security Pro Tips
 
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...
 
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013From One to Many:  Evolving VPC Design (ARC401) | AWS re:Invent 2013
From One to Many: Evolving VPC Design (ARC401) | AWS re:Invent 2013
 
Bct Aws-VPC-Training
Bct Aws-VPC-TrainingBct Aws-VPC-Training
Bct Aws-VPC-Training
 
(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
 
AWS Summit Auckland - Fundamentals of Networking in AWS
AWS Summit Auckland - Fundamentals of Networking in AWSAWS Summit Auckland - Fundamentals of Networking in AWS
AWS Summit Auckland - Fundamentals of Networking in AWS
 
Amazon Virtual Private Cloud
Amazon Virtual Private CloudAmazon Virtual Private Cloud
Amazon Virtual Private Cloud
 
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)
 
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...
 
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
(ARC401) Black-Belt Networking for the Cloud Ninja | AWS re:Invent 2014
 
AWS Network Topology/Architecture
AWS Network Topology/ArchitectureAWS Network Topology/Architecture
AWS Network Topology/Architecture
 

Similar to AWS VPC best practices 2016 by Bogdan Naydenov

Securing your vpc in aws
Securing your vpc in awsSecuring your vpc in aws
Securing your vpc in awsvinoth kumar
 
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...Amazon Web Services
 
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...Amazon Web Services
 
Creating Your Virtual Data Center
Creating Your Virtual Data CenterCreating Your Virtual Data Center
Creating Your Virtual Data CenterMonica Trantow
 
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 Easilyakramemohemat
 
MuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual EventMuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual EventVikalp Bhalia
 
Creating Your Virtual Data Center
Creating Your Virtual Data CenterCreating Your Virtual Data Center
Creating Your Virtual Data CenterAmazon Web Services
 
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 ...Amazon Web Services
 
Top 5 Ways to Secure Your Business on the Cloud
Top 5 Ways to Secure Your Business on the CloudTop 5 Ways to Secure Your Business on the Cloud
Top 5 Ways to Secure Your Business on the CloudAmazon Web Services
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
Amazon virtual private cloud (VPC)
Amazon virtual private cloud (VPC)Amazon virtual private cloud (VPC)
Amazon virtual private cloud (VPC)Piyush Jalan
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure IntegrationAmazon Web Services
 
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLBMuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLBJitendra Bafna
 

Similar to AWS VPC best practices 2016 by Bogdan Naydenov (20)

Securing your vpc in aws
Securing your vpc in awsSecuring your vpc in aws
Securing your vpc in aws
 
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
GPSTEC322-GPS Creating Your Virtual Data Center VPC Fundamentals Connectivity...
 
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...
AWS re:Invent 2016: Hybrid Architecture Design: Connecting Your On-Premises W...
 
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
 
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
 
MuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual EventMuleSoft Meetup Vancouver 5th Virtual Event
MuleSoft Meetup Vancouver 5th Virtual Event
 
cc.pptx
cc.pptxcc.pptx
cc.pptx
 
Creating Your Virtual Data Center
Creating Your Virtual Data CenterCreating Your Virtual Data Center
Creating Your Virtual Data Center
 
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 ...
 
Top 5 Ways to Secure Your Business on the Cloud
Top 5 Ways to Secure Your Business on the CloudTop 5 Ways to Secure Your Business on the Cloud
Top 5 Ways to Secure Your Business on the Cloud
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
Amazon virtual private cloud (VPC)
Amazon virtual private cloud (VPC)Amazon virtual private cloud (VPC)
Amazon virtual private cloud (VPC)
 
Hybrid Infrastructure Integration
Hybrid Infrastructure IntegrationHybrid Infrastructure Integration
Hybrid Infrastructure Integration
 
AWS VPC Flow logs
AWS VPC Flow logsAWS VPC Flow logs
AWS VPC Flow logs
 
Vpc aws meetup
Vpc   aws meetupVpc   aws meetup
Vpc aws meetup
 
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLBMuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
MuleSoft Surat Live Demonstration Virtual Meetup#1 - Anypoint VPC VPN and DLB
 
Getting Started on AWS
Getting Started on AWS Getting Started on AWS
Getting Started on AWS
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

AWS VPC best practices 2016 by Bogdan Naydenov

  • 1. Amazon VPC best practices 2016 Bogdan Naydenov 23 Feb 2016 #AWSBulgaria User Group
  • 2. Who am I Bogdan Naydenov Senior IT Enterprise Architect - Telerik Platform Services team at Progress Software Mostly Operational background with more than 18 years of IT experience MongoDB DBA MongoDB Developer MongoDB Advanced Deployment and Operations https://www.linkedin.com/in/bnaydenov @BobbyNaydenov
  • 3. ● Static private IP address ● Elastic Network Interfaces: possible to bind multiple Elastic Network Interfaces to a single instance ● Internal Elastic Load Balancers ● Advanced Network Access Control ● DHCP options ● Predictable internal IP ranges ● Moving NICs and internal IPs between instances ● VPN connectivity ● Heightened security Introduction to VPC
  • 4. Practice 1: Get your Amazon VPC combination right ● Public facing VPC ● Public and Private setup VPC ● Amazon VPC with Public and Private Subnets and Hardware VPN Access ● Amazon VPC with Private Subnets and Hardware VPN Access ● Software based VPN access
  • 5. Public facing VPC Public and Private setup VPC
  • 6. Amazon VPC with Public and Private Subnets and Hardware VPN Access
  • 7. Practice 2: Always span your Amazon VPC across multiple subnets in Multiple Availability zones inside a Region ● This helps is architecting high availability inside your Amazon VPC properly
  • 8. Practice 3: Choose your CIDR Blocks ● VPC IP range - /28 netmask (16 IP’s) and /16 netmask (65536 IP’s). ● !! VPC CIDR range can not be changed ● Choose Amazon VPC CIDR range which not overlaps or conflicts with the CIDR blocks in your On premise/Data center
  • 9. Practice 4: Isolate according to your Use case ● Create separate Amazon VPC for Development , Staging and Production environment - prefer this one ● Create one Amazon VPC with Separate Subnets/Security/Isolated for Production , Staging and development.
  • 10. Practice 5: Securing Amazon VPC ● Secure your Amazon VPC using Firewall virtual appliance, Web application firewall available from Amazon Web Services Marketplace. ● You can configure Intrusion Prevention or Intrusion Detection virtual appliances and secure the protocols and take preventive/corrective actions in your VPC ● Configure VM encryption tools which encrypts your root and additional EBS volumes. The Key can be stored inside AWS (or) in your Data center outside Amazon Web Services depending on your compliance needs. ● Enable the CloudTrail to audit in the VPC environments ACL policy's. Enable CloudTrail : Apply anti virus for cleansing specific EC2 instances inside VPC. ● Configure Site to Site VPN for securely transferring information between Amazon VPC in different regions or between Amazon VPC to your On premise Data center ● Enable VPC Flow Logs
  • 11. Practice 6: Understand Amazon VPC Limits ● VPC and Subnets: ● Gateways: ● Network ACLs: ● Route Tables: ● Security Groups: ● Check all limits here: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html
  • 12. Practice 7: Use security groups and Network ACLs wisely ● use security groups over Network ACLs inside Amazon VPC wherever applicable for better control ● Security groups are applicable on EC2 instance level ● network ACL is applicable on Subnet level ● Security groups are used for Whitelist mostly ● To blacklist IPs, one can use Network ACLs
  • 13. Practice 8: Tier your Security Groups ● Create different security groups for different tiers of your infrastructure architecture inside your VPC. If you have Web, App, DB, Cache tiers create different security group for each of them. ● Creating tier wise security groups will increase the infrastructure security inside Amazon VPC. EC2 instances in each tier can talk only on application specified ports and not at all ports. If you create Amazon VPC security groups for each and every tier/service separately it will be easier to open a port to a particular service. ● Don't use same security group for multiple tiers of instances, this is a bad practice. ● Open ports for security group instead of IP ranges
  • 14. Practice 9: Standardize your Security Group Naming conventions ● Following a security group naming conventions inside Amazon VPC will improve operations/management for large scale deployments inside VPC. It also avoids manual errors, leaks and saves cost and time overall. Good example: Simple ones like Prod_DMZ_Web_SG or Dev_MGMT_Utility_SG Bad example: EUFA3LXWEBP001- EU Frankfurt AZ 3 Linux Web Server Production 001
  • 15. Practice 10: ELB on Amazon VPC ● When using Amazon ELB for Web Applications, put all other EC2 instances( Tiers like App,cache,DB etc) in private subnets as much possible. Unless there is a specific requirement where instances need outside world access and EIP attached, put all instances in private subnet only. ● Only ELBs should be provisioned in Public Subnet as secure practice in Amazon VPC environment.
  • 16. Practice 11: Control your outgoing traffic in Amazon VPC ● for better security, for the traffic going to internet gateway use software's like Squid or other proxy to restrict the ports,URL,Domains etc... so that all traffic go through the proxy tier controlled and it also gets logged. ● Using these proxy/security systems we can also restrict the unwanted ports, by doing so, if there is any security compromise to the application running inside Amazon VPC they can be detected by auditing the restricted connections captured from the logs. This helps in corrective security measure. ● Enable VPC Flow Logs + CloudWatch
  • 17. Practice 12: NEW!! use NAT managed gateways ● Retire your NAT instances and use NAT managed gateway ● NAT managed gateways - introduced on Dec 17 2015 ● The gateway has built-in redundancy for high availability. ● Each gateway that you create can handle up to 10 Gbps of bursty TCP, UDP, and ICMP traffic, and is managed by Amazon. ● You control the public IP address by assigning an Elastic IP Address when you create the gateway.
  • 18. Practice 13: Use EIP when needed ● At times you may need to keep a part of your application services to be kept in Public subnet for external communication. It is recommended practice to associate them with Amazon Elastic IP and whitelist these IP address in the target services used by them
  • 19. Practice 14: Plan your VPN Connections between On-Premise DC to Amazon VPC ● AWS hardware VPN - You can create an IPsec, hardware VPN connection between your VPC and your remote network ● AWS Direct Connect - AWS Direct Connect provides a dedicated private connection from a remote network to your VPC. ● AWS VPN CloudHub - If you have more than one remote network (for example, multiple branch offices), you can create multiple AWS hardware VPN connections via your VPC to enable communication between these networks ● Software VPN - You can create a VPN connection to your remote network by using an Amazon EC2 instance in your VPC that's running a software VPN appliance.
  • 21. Practice 15: Network ACL best practices ● Allow and Deny Network ACL - Create Internet outbound allow and deny network ACL in your VPC. Example: First network ACL: Allow all the HTTP and HTTPS outbound traffic on public internet facing subnet. Second network ACL: Deny all the HTTP/HTTPS traffic. Allow all the traffic to Squid proxy server or any virtual appliance. ● Restricting Network ACL : Block all the inbound and outbound ports. Only allow application request ports. These are stateless traffic filters that apply to all traffic inbound or outbound from a Subnet within VPC. AWS recommended Outbound rules
  • 22. Practice 16: Use Amazon VPC Peering ● Large Enterprises usually run Multiple Amazon VPC in single region and some of their applications are so interconnected that they may need to access them privately + securely inside AWS. Example Active Directory, Exchange, Common business services will be usually interconnected. ● Large Enterprise have different AWS accounts for different business units/teams/departments , at times systems deployed by some business units in different AWS accounts need to be shared or need to consume a shared resource privately. Example: CRM , HRMS ,File Sharing etc can be internal and shared. In such scenarios VPC peering comes very useful. ● Customer can peer their VPC with their core suppliers to have tighter integrated access of their systems. ● Companies offering Infra/Application Managed Services on AWS can now safely peer into customer Amazon VPC and provide monitoring and management of AWS resources.
  • 23. Practice 16: Use Amazon VPC Peering limits ● You cannot create a VPC peering connection between VPCs that have matching or overlapping CIDR blocks. ● You cannot create a VPC peering connection between VPCs in different regions. ● You have a limit on the number active and pending VPC peering connections that you can have per VPC. ● VPC peering does not support transitive peering relationships; in a VPC peering connection, your VPC will not have access to any other VPCs that the peer VPC may be paired with. This includes VPC peering connections that are established entirely within your own AWS account. ● You cannot have more than one VPC peering connection between the same two VPCs at the same time. ● You cannot reference a security group from the peer VPC as a source or destination for ingress or egress rules in your security group. Instead, reference CIDR blocks of the peer VPC as the source or destination of your security group's ingress or egress rules. ● An instance's public DNS hostname will not resolve to its private IP address across peered VPCs.
  • 24. Two VPCs Peered Together Two VPCs Peered Together Three VPCs Peered Together One VPC Peered With Multiple VPCs Multiple VPCs Peered Together
  • 25. Bonus TIPS: DNS resolving between Amazon VPC and on-premises networks ● common approach used to address this need is to run DNS servers on Amazon EC2 across multiple Availability Zones (AZs) and integrate them with private on-premises DNS domains. In many cases, though, a managed private DNS service (accessible outside of a VPC) with less administrative overhead is advantageous. ● Using AWS Directory Service Simple AD to forward DNS requests to Route 53 Resolving DNS requests for on-premises resources originating from AWS http://amzn.to/1XJQ4Ht ● DNS Resolution Between On-Premises Networks and AWS Using AWS Directory Service and Microsoft Active Directory http://amzn.to/1X28AKS
  • 26. Using AWS Directory Service Simple AD to forward DNS requests to Route 53
  • 27. Resolving DNS requests for on-premises resources originating from AWS
  • 28. DNS Resolution Between On-Premises Networks and AWS Using AWS Directory Service and Microsoft Active Directory
  • 29. Resolving DNS requests for on-premises resources originating from AWS with Microsoft Active Directory