Creating EC2 Instances with pre-created Substitutes….

Yash Sankhla
3 min readJun 26, 2021

--

Hey connections, today we are going to create an ec2 instance with pre-created substitutes like key-pair, security group, etc... A complete description of the task is:-

🔅 Create a key pair

🔅 Create a security group

🔅 Launch an instance using the above-created key pair and security group.

🔅 Create an EBS volume of 1 GB.

🔅 The final step is to attach the above created EBS volume to the instance you created in the previous steps.

So let’s ready guys we can use the following steps to do this task,

Step 1:- Creating Key Pair

Step 2:- Creating Security Group

Step 3:- Launching new ec2 instance

Selecting AMI
Selecting t2.micro CPU
Default Settings
Default 8 gib for root
Tags
Pre-created Security Group (my_sg)
Review & Launch
Pre-created key-pair (my_new_key)
Launched

Step 4:- Let’s see the instance details and its conf

Step 5:- Creating new EBS volume & attaching it to ec2 instance

Note:- AZ of volume should be same as of instance
Volume created
Attaching to instance
Selecting instance

Step 6:- Starting instance to see the newly attached volume

1 gib volume came

We can format & attach this volume to any directory to use this storage.

So, that’s all for this we have achieved what we need.

If you have any queries please ping me.

Keep Sharing & Keep Learning…….

--

--

Yash Sankhla
Yash Sankhla

Written by Yash Sankhla

ARTH Learner * Cloud * AI/ML/DL/NN * DevOps * Hadoop * Web Dev * DB-SQL & NoSQL* DSA * RHEL 8 * Image Processing * Languages — C, C++, Python

No responses yet