Skip to content

Adityanagraj/AWS-Task1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 

Repository files navigation

Aws_task1

Task description

πŸ”… 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.

Step1 : Creation of key pair using following command aws ec2 create-key-pair --key-name aws_task1

code

Step2 : launch the instance with the above created key-pair and security group by using following command aws ec2 run-instances --image-id ami-0947d2ba12ee1ff75 --instance-type t2.micro --security-group-ids sg-d01642ef --key-name awseducate

code

Step3 : Creation of volume by using following command aws ec2 create-volume --size 1 --availability-zone us-east-1a

code

we can see the volume created in the AWS console of 1 GB and in the attachment region it has not still attached to any instance

code

Step 4 Now we have to attach the volume to the instance we have created first by using command aws ec2 attach-volume --device /dev/sdf --instance-id i-0faeb36ccba0fdf8a --volume-id vol-01ffc336c0a1b7c6d

code

Finally we can see that the volume which we launched seperately has been attached to instance which we have passed

code

As all this commands are executed from AWS CLI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published