How to Create Amazon Linux EC2 Instance Using AWS CLI

Share via:

Dear Readers,

In this article, we will see the following Create Amazon Linux EC2 Instance in AWS CLI.

Steps to Follow :

  1. Connect to AWS CLI On Windows
  2. Create a Key Pair
  3. Create a Security Group
  4. Create a Amazon EC2 Instance
  5. Create a Volume
  6. Attach volume to ec2 Instance

 

1. Connect to AWS CLI On Windows

To configure AWS CLI On Windows click here

Go inside the Command Line Interface

Specify required credentials, region and output format for connect to AWS CLI

2. Create Key Pair

Verify Key Pair in graphical

3. Create a Security Group

Verify in graphical

 

4. Create a Amazon EC2 Instance

Copy AMI of Amazon Linux2

 

Verify the Amazon EC2 Instance in graphical

 

5. Create a Volume

Before creating volume we need to check the availability zone your ec2 instance because ec2 instance and volume should be in same availability zone.

Verify Availability Zone

Create a Volume

Verify Volume in graphical

6. Attach volume to EC2 Instance

Verify in graphical

 

 

Thank you for giving your valuable time to read the above information.
Follow us on 
Website  www.ktexperts.com
Facebook Page KTexperts
Linkedin Page : KT EXPERTS

Follow Me
Ramesh’s Linkedin : Ramesh Atchala

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