• Login
Wednesday, June 18, 2025
The Cloud Guru
  • Home
  • AWS
  • Data Center
  • GCP
  • Technology
  • Tutorials
  • Blog
    • Blog
    • Reviews
No Result
View All Result
Wednesday, June 18, 2025
  • Home
  • AWS
  • Data Center
  • GCP
  • Technology
  • Tutorials
  • Blog
    • Blog
    • Reviews
No Result
View All Result
No Result
View All Result

Create a Highly Available VPC on AWS

Team TCG by Team TCG
October 1, 2023
in Architecture, AWS, HOW To's
0 0
0
Home Architecture
0
SHARES
3
VIEWS
Share on FacebookShare on Twitter

In this we’ll walk through the process of deploying a highly available VPC consisting of the following: – VPC – 2 Availability Zones – 2 Public Subnets (1 per AZ) – 2 Private Subnets (1 per AZ) – 1 Public Routing Table Named ‘PubRT’ – 1 Internet Gateway – 1 Public Security Group – 1 Private Security Group

Log in to the AWS Management Console.

Create the VPC

  1. Navigate to VPC using the Services menu or the unified search bar.
  2. In the sidebar menu, select Your VPCs.
  3. On the right, click Create VPC.
  4. Configure the VPC settings section:
    • Resources to create: Select VPC only.
    • Name tag: In the text box, enter LabVPC.
    • IPv4 CIDR: In the text box, enter 10.20.0.0/16.
  5. Leave all the other default settings and click Create VPC. The VPC is created and its details are automatically displayed.

Create the Subnets

  1. In the sidebar menu, select Subnets.
  2. On the right, click Create Subnet.
  3. In the VPC ID field, use the dropdown to select your VPC.
  4. Configure the Subnet settings section for public subnet 1:
    • Subnet name: In the text box, enter Public1.
    • Availability Zone: Use the dropdown to select US East (N.Virginia)/us-east-1a.
    • IPv4 CIDR block: In the text box, enter 10.20.1.0/24.
  5. Toward the bottom of the page, click Add new subnet.
  6. Configure the Subnet settings section for public subnet 2:
    • Subnet name: In the text box, enter Public2.
    • Availability Zone: Use the dropdown to select US East (N. Virginia)/us-east-1b.
    • IPv4 CIDR block: In the text box, enter 10.20.2.0/24.
  7. Toward the bottom of the page, click Add new subnet again.
  8. Configure the Subnet settings section for private subnet 1:
    • Subnet name: In the text box, enter Private1.
    • Availability Zone: Use the dropdown to select US East (N. Virginia)/us-east-1a.
    • IPv4 CIDR block: In the text box, enter 10.20.3.0/24.
  9. Toward the bottom of the page, click Add new subnet again.
  10. Configure the Subnet settings section for private subnet 2:
    • Subnet name: In the text box, enter Private2.
    • Availability Zone: Use the dropdown to select US East (N. Virginia)/us-east-1b.
    • IPv4 CIDR block: In the text box, enter 10.20.4.0/24.
  11. At the bottom of the page, click Create Subnet. The four subnets take a moment to finish creating.

Build an Internet Gateway

  1. In the sidebar menu, select Internet gateways.
  2. On the right, click Create internet gateway.
  3. In the Name tag field, enter LabIGW.
  4. Click Create internet gateway. The internet gateway takes a moment to finish building.
  5. After creating the Internet gateway, use the breadcrumb at the top of the page to select Internet gateways.
  6. Check the checkbox to the left of your LabIGW gateway.
  7. On the right, use the Actions dropdown to select Attach to VPC.
  8. In the Available VPCs field, click on the text box and select your LabVPC VPC.
  9. Click Attach Internet gateway. The internet gateway is attached to your VPC.

Configure a Route Table within Your VPC Named PubRT

Create the Route Table and Associate the Public Subnets

  1. In the sidebar menu, select Route Tables.
  2. In the top right corner, click Create route table.
  3. Configure the Route table settings section:
    • Name: In the text box, enter PubRT.
    • VPC: Use the dropdown to select your LabVPC VPC.
  4. Click Create route table. The route table is created and its details display automatically.
  5. On the right, use the Actions dropdown to select Edit subnet associations.
  6. Check the checkboxes to the left of the Public1 and Public2 subnets.
  7. Click Save Associations.

Update the Routes to Send Traffic to the Internet Gateway

  1. From the route table details, ensure the Routes tab is selected.
  2. On the right, click Edit Routes.
  3. Click Add route.
  4. In the Destination field, enter 0.0.0.0/0.
  5. In the Target field, select Internet Gateway, and then select your LabIGW gateway.
  6. Click Save Changes.

Associate the Private Subnets with the Default VPC

  1. Use the breadcrumb at the top of the page to select Route tables.
  2. Check the checkbox to the left of the default VPC (indicated as the main VPC).
  3. From the route table details, select the Subnet Associations tab.
  4. On the right, click Edit subnet associations.
  5. Check the checkboxes to the left of the Private1 and Private2 subnets.
  6. Click Save Associations.

Create the PublicSG and PrivateSG Security Groups

Create the PublicSG Security Group

  1. In the sidebar menu, select Security Groups.
  2. On the right, click Create security group.
  3. Fill in the Basic details section:
    • Security group name: In the text box, enter PublicSG.
    • Description: In the text box, enter pubs.
    • VPC: Click into the field and select your LabVPC VPC.
  4. In the Inbound rules section, click Add rule.
  5. Fill in the rule details:
    • Type: Use the dropdown to select HTTPS.
    • Source: Use the dropdown to select Anywhere-IPv4.
  6. Click Add rule again.
  7. Fill in the rule details:
    • Type: Use the dropdown to select HTTPS.
    • Source: Use the dropdown to select Anywhere-IPv6.
  8. At the bottom of the page, click Create security group.
  9. After the security groups are created, use the breadcrumb at the top of the page to select Security Groups.

Create the PrivateSG Security Group

  1. On the right, click Create security group.
  2. Fill in the Basic details section:
    • Security group name: In the text box, enter PrivateSG.
    • Description: In the text box, enter privatesg.
    • VPC: Click into the field and select your LabVPC VPC.
  3. In the Inbound rules section, click Add rule.
  4. Fill in the rule details:
    • Type: Use the dropdown to select All traffic (you can also type All traffic into the field to narrow the dropdown results).
    • Source: Leave the Custom default. In the search box to the right of Custom, select your PublicSG security group.
  5. At the bottom of the page, click Create security group.

Enable Logging of All IP Traffic to a Created S3 Bucket

  1. In the sidebar menu, select Your VPCs.
  2. Check the checkbox to the left of your LabVPC VPC.
  3. On the right, use the Actions menu to select Create flow log.
  4. Fill in the Flow log settings section:
    • Name: In the text box, enter LabVPCFlowLogs.
    • Filter: Select All.
    • Maximum aggregation interval: Select 10 minutes.
    • Destination: Select Send to Amazon S3 bucket.
  5. To get the S3 bucket ARN, open S3 in a new tab using the Services menu or the unified search bar.In the S3 Management Console, you should see one bucket.
  6. Select the bucket name.
  7. Along the top of the page, select the Properties tab.
  8. In the Bucket Overview section, copy the ARN.
  9. Navigate back to the VPC Management Console tab and paste your copied ARN into the S3 bucket ARN field.
  10. Leave all the other default settings, and click Create flow log.
Tags: 2Min'sAWSCloud ComputingHow toTutorials
Previous Post

Using Terraform Dynamic Blocks and Built-in Functions to Deploy to AWS

Next Post

Protected: Kubernetes

Team TCG

Team TCG

Related Posts

AWS

Azure Case Study: How Spotify Uses Azure

Discover how Spotify revolutionized its operations by partnering with Microsoft Azure, enhancing user experiences while tackling challenges like scalability and...

by Team TCG
March 16, 2025
AWS

Quick Tip: Troubleshooting Common Azure Errors

Discover how to tackle the common pitfalls of Azure cloud services with our comprehensive troubleshooting guide. Learn to decode error...

by Team TCG
March 15, 2025
AWS

Azure Cognitive Services: Adding AI Capabilities to Your Applications

Unlock the power of AI with Azure Cognitive Services! Seamlessly integrate advanced features like vision recognition and speech processing into...

by Team TCG
March 15, 2025
AWS

Azure IoT Hub: Connecting IoT Devices to the Cloud

Unlock the potential of the Internet of Things with Azure IoT Hub! This powerful cloud service by Microsoft enables secure,...

by Team TCG
March 15, 2025
AWS

Azure Data Lake Storage: Storing and Analyzing Big Data

Discover the power of Azure Data Lake Storage (ADLS) for managing vast amounts of data. With its hierarchical namespace, unmatched...

by Team TCG
March 14, 2025
AWS

Azure Machine Learning: Building and Deploying ML Models

Discover how Azure Machine Learning can revolutionize productivity with AI-driven insights. This guide explores its capabilities like AutoML, essential setup...

by Team TCG
March 14, 2025
Next Post

Kubernetes

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest

Comparing AWS Storage Services: S3 vs. EBS vs. EFS vs. FSx vs. S3 Glacier vs. Storage Gateway

September 30, 2023

AWS DataSync vs. AWS Storage Gateway: Choosing the Right Data Transfer Service

September 30, 2023

Comparing AWS Compute Services: EC2 vs. ECS vs. EKS vs. Fargate vs. Lambda

September 30, 2023

How Duolingo’s AWS-Powered Language Learning Platform?

October 30, 2023

AWS SnowMobile

0

Passwordless Login Using SSH Keygen in 5 Easy Steps

0

Create a new swap partition on RHEL system

0

Configuring NTP using chrony

0

Azure Case Study: How Spotify Uses Azure

March 16, 2025

Quick Tip: Troubleshooting Common Azure Errors

March 15, 2025

Azure Cognitive Services: Adding AI Capabilities to Your Applications

March 15, 2025

Azure IoT Hub: Connecting IoT Devices to the Cloud

March 15, 2025

Recommended

Azure Case Study: How Spotify Uses Azure

March 16, 2025

Quick Tip: Troubleshooting Common Azure Errors

March 15, 2025

Azure Cognitive Services: Adding AI Capabilities to Your Applications

March 15, 2025

Azure IoT Hub: Connecting IoT Devices to the Cloud

March 15, 2025

About Us

Let's Simplify the cloud for everyone. Whether you are a technologist or a management guru, you will find something very interesting. We promise.

Categories

  • 2 Minute Tutorials (7)
  • AI (3)
  • Ansible (1)
  • Architecture (3)
  • Artificial Intelligence (3)
  • AWS (168)
  • Azure (3)
  • books (2)
  • Consolidation (4)
  • Containers (1)
  • Data Analytics (1)
  • Data Center (11)
  • Design (1)
  • GCP (13)
  • HOW To's (17)
  • Innovation (1)
  • Kubernetes (8)
  • LifeStyle (2)
  • LINUX (6)
  • Microsoft (2)
  • news (3)
  • People (4)
  • Reviews (1)
  • RHEL (2)
  • Security (2)
  • Self-Improvement and Professional Development (1)
  • Serverless (2)
  • Social (2)
  • Switch (1)
  • Technology (133)
  • Terraform (3)
  • Tools (1)
  • Tutorials (13)
  • Uncategorized (8)
  • Video (1)
  • Videos (1)

Tags

2Min's (7) Agile (1) AI (5) Appication Modernization (1) Application modernization (1) Architecture (1) AWS (43) AZURE (4) BigQuery (1) books (2) Case Studies (17) CI/CD (1) Cloud Computing (185) Cloud Optimization (1) Comparo (17) Consolidation (1) Courses (1) Data Analytics (1) Data Center (8) Emerging (1) GCP (11) Generative AI (1) How to (14) Hybrid Cloud (5) Innovation (2) Kubernetes (4) LINUX (5) lunch&learn (133) memcache (1) Microsoft (1) monitoring (1) NEWS (2) NSX (1) Opinion (3) SDDC (2) security (1) Self help (2) Shorties (1) Stories (1) Team Building (1) Technology (3) Tutorials (20) vmware (3) vSAN (1) Weekend Long Read (1)
  • About
  • Advertise
  • Privacy & Policy

© 2023 The Cloud Guru - Let's Simplify !!

No Result
View All Result
  • Home
  • AWS
  • HOW To’s
  • Tutorials
  • GCP
  • 2 Minute Tutorials
  • Data Center
  • Artificial Intelligence
  • Azure
  • Videos
  • Innovation

© 2023 The Cloud Guru - Let's Simplify !!

Welcome Back!

Sign In with Facebook
Sign In with Google
Sign In with Linked In
OR

Login to your account below

Forgotten Password?

Create New Account!

Sign Up with Facebook
Sign Up with Google
Sign Up with Linked In
OR

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In