How to Create VPC Using Cloud Formation

Share via:

Dear Readers,

In this article, we will see the following How to Create VPC Using Cloud Formation.

Steps to Follow :
  1. Logging to AWS Account
  2. Create Stack for creating VPC
  3. Very VPC Graphically

 

1. Logging to AWS Account

First, we need to AWS Console page by using below link.

https://aws.amazon.com/console/

Click on sign in to Console button. Logging to aws account

Login using username & password and click on sign in. Enter to AWS Management Console

We can see the AWS Management Console Dashboard. Go to Services, under the compute module click EC2 service to open.

Go to Services, under the Management & Governance module click Cloud Formation service to open.

2. Create Stack for creating VPC

Click on Create stack.

Upload template file

Select Template is ready and click on Upload a template file.

select file “vpc.yml” and click on open.

the file has uploaded and click on Next.

Specify stack stack name “ktexperts-vpc” and click on Next.

click on Next.

Click on Create stack.

we can see the vpc creating is being in progress, It will take time to create.

We can see the vpc “ktexperts-vpc” has created successfully.

3. Verify VPC in Graphically

Go to Services, under the Networking & Content Delivery module click VPC  service to open.

Verify VPC “ktexpertsvpc”

Go to Your VPCs,we can the vpc “ktexperts-vpc” has created successfully.

Verify Subnet “ktexpertssubnet”

Go to Subnets,we can the subnet “ktexpertssubnet” has created successfully.

Verify Route Table

Go to Route Tables,we can the RouteTable “ktexpertsRT” has created successfully.

Verify IGW

Go to Internet Gateways, we can the Internet Gateways”ktexpertsigw” has created successfully.

Verify Subnet Association

Go to Route Tables, we can see the subnet association has added successfully.

Verify Route

Go to Route Tables, we can see the Route has added successfully.

 

Script for creating VPC:

 

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

Add Comment