Being able to architect your own isolated segment of AWS is a simple process using VPCs; understanding how to architect its related networking components and connectivity architecture is key to making it a powerful service.
Many services within Amazon Web Services (AWS) require you to create and configure a VPC to provision and distribute your resources. Using the AWS global infrastructure, you can architect high availability and resilience into your deployment using availability zones and regions. For more information on the AWS global infrastructure, read my blog about availability zones, regions, edge locations, and regional edge caches.
When designing your VPC to isolate your resources, you need to ask yourself a number of questions to help with the architectural decisions that are related to VPC design. These might include:
- What IP Classless Inter-Domain Routing (CIDR) block should I use?
- How many VPCs do I need?
- Can I segment my traffic, and how?
- Do I need to use multiple availability zones?
- How do I manage the routing of traffic between network segments?
- How do I connect my VPC to the internet?
- How can I enforce security within my VPC both at the instance and network layer?
- How can I connect to my VPC from my on-premises data center?
- How can I connect to my VPC from another VPC?
All of these questions are important factors when creating your VPC. To help answer them, you need to be aware of some AWS services and components that relate to VPC management, control, and operation.
An internet gateway (IGW) is an AWS-managed component that is attached to your VPC. This provides a connection between your isolated VPC and the outside world, essentially the internet. When an IGW is attached to your VPC, subnets can set a route to the IGW for traffic residing outside of the VPC. Subnets with this configured route are defined as public subnets.
A VPC subnet allows you to segment your VPC CIDR block into smaller network segments across multiple availability zones with your VPC region. This then helps you to isolate, organize, and manage your resources in addition to helping you implement resilience and high availability.
Within your VPC, you can create multiple route tables. These enable you to configure where and how to route your network traffic based on its destination via different targets, such as internet gateways, network address translation (NAT) gateways, or customer gateways.
Network Access Control Lists (NACLs)
NACLs act as a logical firewall that provide network level security, operating at the subnet layer. They provide a stateless rulebase, allowing you to stipulate both the ingress and egress traffic based on protocols that allow or deny access in or out of the subnet.
Much like NACLs, security groups are also like a firewall; however, these operate at the instance layer, providing a level of protection to instances residing within your subnets based on defined protocols. Security groups are stateful by design and rules within the rulebase are considered “allowed” — security groups do not offer a “deny” function like NACLs do.
NAT gateways are managed services that allow instances located within a private subnet to access the internet, enabling them to download and perform patch updates and maintenance. NAT gateways prevent inbound connections that are initiated from the internet, helping to protect private resources.
A bastion host is a secure, hardened instance that resides within the public subnet of your VPC. It has very restrictive security controls, allowing restricted inbound connections from known and trusted IP addresses — usually using SSH or RDP protocols. These security controls allow engineers to perform a remote and secure connection to the Bastion Host where the instance acts as a “jump server” allowing the engineers to SSH or RDP to instances residing within private subnets.
A virtual private network (VPN) connection allows two remote networks to securely connect to each other across the internet. You could use a VPN connection to allow your remote office or data center to connect to your VPC allowing traffic to move between both networks.
A direct connect (DC) connection also allows you to connect your VPC to your remote office/data center. This connection is established across a secure, dedicated infrastructure rather than the internet. A connection is established to a direct connection location usually managed by an AWS partner using dedicated infrastructure. From here, the connection is made to the AWS network, allowing a secure and private connection to your VPC.
VPC peering allows you to connect two VPCs together using the internal AWS infrastructure as if they were on the same network. There are some key points to bear in mind. Mainly, the two VPCs are not allowed to have overlapping CIDR blocks. VPC peering provides a one-to-one connection only and does not allow transitive peering to a third VPC.
For example, if you had three VPCs connected (VPC1 connected to VPC2 and VPC2 connected to VPC3), then VPC1 will not be able to talk to VPC3. You would have to either set up another peering connection from VPC1 to VPC3 or implement the AWS Transit Gateway.
AWS Transit Gateway
AWS transit gateway (TGW) allow you to perform a one-to-many relationship with your VPCs in addition to your remote networks as well. The TGW acts as a central hub within your network, allowing all VPCs, remote offices, and data center to connect to it. This configuration simplifies multiple peering connections and reduces overall connectivity from remote locations to your VPCs.
If you are new to AWS, then it’s important that you understand each of these components and the part they play within your architectural design of your VPC. To learn more about each of these components, you can take a look at our new course which will provide a deeper explanation of each via graphical explanations and designs allowing you to easily follow the concepts and principles of each.
If you’re interested to learn how to architect a VPC across multiple availability zones within a Region, how to secure your VPCs, and assess which method of connectivity to your VPCs is more appropriate for your organization, enroll on the Working with AWS Networking and Amazon VPC Course. I’ve built this whole course through the experience of a drawing pad.
To have a taste of what the course experience is like, watch this video on NAT Gateways.
New Content: AWS Terraform, Java Programming Lab Challenges, Azure DP-900 & DP-300 Certification Exam Prep, Plus Plenty More Amazon, Google, Microsoft, and Big Data Courses
This month our Content Team continues building the catalog of courses for everyone learning about AWS, GCP, and Microsoft Azure. In addition, this month’s updates include several Java programming lab challenges and a couple of courses on big data. In total, we released five new learning...
Where Should You Be Focusing Your AWS Security Efforts?
Another day, another re:Invent session! This time I listened to Stephen Schmidt’s session, “AWS Security: Where we've been, where we're going.” Amongst covering the highlights of AWS security during 2020, a number of newly added AWS features/services were discussed, including: AWS Audit...
AWS re:Invent: 2020 Keynote Top Highlights and More
We’ve gotten through the first five days of the special all-virtual 2020 edition of AWS re:Invent. It’s always a really exciting time for practitioners in the field to see what features and services AWS has cooked up for the year ahead. This year’s conference is a marathon and not a...
WARNING: Great Cloud Content Ahead
At Cloud Academy, content is at the heart of what we do. We work with the world’s leading cloud and operations teams to develop video courses and learning paths that accelerate teams and drive digital transformation. First and foremost, we listen to our customers’ needs and we stay ahea...
Excelling in AWS, Azure, and Beyond – How Danut Prisacaru Prepares for the Future
Meet Danut Prisacaru. Danut has been a Software Architect for the past 10 years and has been involved in Software Engineering for 30 years. He’s passionate about software and learning, and jokes that coding is basically the only thing he can do well (!). We think his enthusiasm shines t...
New Content: AWS Data Analytics – Specialty Certification, Azure AI-900 Certification, Plus New Learning Paths, Courses, Labs, and More
This month our Content Team released two big certification Learning Paths: the AWS Certified Data Analytics - Speciality, and the Azure AI Fundamentals AI-900. In total, we released four new Learning Paths, 16 courses, 24 assessments, and 11 labs. New content on Cloud Academy At any ...
New Content: Azure DP-100 Certification, Alibaba Cloud Certified Associate Prep, 13 Security Labs, and Much More
This past month our Content Team served up a heaping spoonful of new and updated content. Not only did our experts release the brand new Azure DP-100 Certification Learning Path, but they also created 18 new hands-on labs — and so much more! New content on Cloud Academy At any time, y...
AWS Certification Practice Exam: What to Expect from Test Questions
If you’re building applications on the AWS cloud or looking to get started in cloud computing, certification is a way to build deep knowledge in key services unique to the AWS platform. AWS currently offers 12 certifications that cover major cloud roles including Solutions Architect, De...
Overcoming Unprecedented Business Challenges with AWS
From auto-scaling applications with high availability to video conferencing that’s used by everyone, every day — cloud technology has never been more popular or in-demand. But what does this mean for experienced cloud professionals and the challenges they face as they carve out a new p...
Constant Content: Cloud Academy’s Q3 2020 Roadmap
Hello — Andy Larkin here, VP of Content at Cloud Academy. I am pleased to release our roadmap for the next three months of 2020 — August through October. Let me walk you through the content we have planned for you and how this content can help you gain skills, get certified, and...
New Content: Alibaba, Azure AZ-303 and AZ-304, Site Reliability Engineering (SRE) Foundation, Python 3 Programming, 16 Hands-on Labs, and Much More
This month our Content Team did an amazing job at publishing and updating a ton of new content. Not only did our experts release the brand new AZ-303 and AZ-304 Certification Learning Paths, but they also created 16 new hands-on labs — and so much more! New content on Cloud Academy At...
Blog Digest: Which Certifications Should I Get?, The 12 Microsoft Azure Certifications, 6 Ways to Prevent a Data Breach, and More
This month, we were excited to announce that Cloud Academy was recognized in the G2 Summer 2020 reports! These reports highlight the top-rated solutions in the industry, as chosen by the source that matters most: customers. We're grateful to have been nominated as a High Performer in se...