Skip to content

This is demonstration of Task-2 of AWS-CSA-Developer training 2020-2021 by Vimal Daga sir.

Notifications You must be signed in to change notification settings

PardeepChahar/AWS-Training-Task-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Welcome to AWS-Training-Task-2

Task 2

  1. Create a key pair
  2. Create a security group
  3. Launch an instance using the above created key pair and security group.
  4. Create an EBS volume of 1 GB.
  5. The final step is to attach the above created EBS volume to the instance you created in the previous steps.

Stepwise Implementation:

Step 1: Create a key pair

Key name: Task2Key

aws ec2 create-key-pair --key-name Task2Key

Output:

image

Step 2: Create a security group

security group name: aws-task2-allowall

aws ec2 create-security-group --group-name aws-task2-allowall --description "Allow all traffic"

Output:

image

Note: There is no rule in above Security Group.

image

Create rule that allow all traffic

aws ec2 authorize-security-group-ingress --group-name aws-task2-allowall --protocol all --cidr 0.0.0.0/0

Output:

image

Step 3: Launch an instance using the above created key pair and security group.

aws ec2 run-instances --image-id ami-00bf4ae5a7909786c --instance-type t2.micro --count 1 --key-name Task2Key --security-group-ids sg-02f0d54f37070f560

Output:

image

Step 4: Create an EBS volume of 1 GB.

aws ec2 create-volume --volume-type gp2 --size 1 --availability-zone ap-south-1b

Output:

image

Attach the above created EBS volume to the instance you created in the previous steps.

aws ec2 attach-volume --instance-id i-0af875947f5e766f5 --volume-id vol-0389acab0065c118c --device /dev/xvdh

Output:

image

Link for other tasks

Task 1 Task 2 Task 3 Task 4 Task 5

About

This is demonstration of Task-2 of AWS-CSA-Developer training 2020-2021 by Vimal Daga sir.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published