Attaching EBS to the newly created instance via AWS CLI
Mar 17, 2021
Creating a Key Pair
We use the command “aws ec2 help” find the command “aws ec2 create-key-pair-help”
Creating a security group
We use the command “aws ec2 help” find the command “aws ec2 create-security-group help
Creating a new instance
We use the command “aws ec2 help” find the command “aws ec2 run-instances help”
We collect the following info from the Web UI
— AMI id :
— Instance id :
— Subnet :
— Availability zone :
— Key name :
Creating an EBS volume of 1GB
We use the command “aws ec2 help” find the command “aws ec2 create-volume help”
Attaching the EBS volume to the instance created
We use the command “aws ec2 help” find the command “aws ec2 attach-volume help”