STEP -1 Create VPC

Create VPC using the following Information

Name: VPC-ASG-Demo

IPv4 CIDR block :

Tenancy : Default

Image for post

STEP -2 Create Two Subnets in different availability Zones

Publicsubnet1 with CIDR (US-east -1a)
Publicsubnet2 with CIDR (US-east -1b)
Under VPC : Mention VPC ASG- DEMO for both subnets

Image for post

STEP -3 Create Internet Gateway

Name tag : VPC-ASG-Demo-IG

Now attach the Internet gateway to the VPC

Image for post

STEP -4 Modify the main route table to add route for internal gateway

Go to Route Table, under Route tab select Edit Routes

Image for post

Under edit route , Add new route with the following information and save


Target: VPC-ASG-Demo-IG

Click Save Routes

Image for post

STEP -5 Associate both the subnets to the main route table

Now we need to associate the routes to the subnets. Go to the subnets tab and select edit subnets

Image for post
Subnet Associations

Select Both subnets and associate by clicking the save button as shown below

Image for post
Associate subnets

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store