πΊ Automating AWS through CLI π»
In this article we will be Automating AWS using AWS CLI
πΆ Step 1: Create a key pair
πΆ Step 2: Create a security group
πΆ Step 3: Launch an instance using the above created key pair and security group.
πΆ Step 4: Create an EBS volume of 3Gib.
πΆ Step 5: The final step is to attach the above created EBS volume to the instance you created in the previous steps.
So lets start
Firstly lets create a IAM user on AWS so that we can login through our local system Command prompt
Now to login through Windows Command prompt run the following command
Now we have finally login to AWS account through cmd prompt
Step 1: Create a key pair π»
Firstly lets create Key pair
Here no need to remember all the commands we can use βhelpβ cmd to get help
Key pair Created
Step 2: Create a security group π»
Finally Security group Created
Step 3: Now lets Launch an instance using the above created key pair and security group. π»
Successfully Instance Created
Step 4: Create an EBS volume of 1 GB. π»
Successfully Created volume of 3 Gib
Step 5: The final step is to attach the above created EBS volume to the instance you created in the previous steps. π»
Finally EBS volume has been attached to the above created ec2 instance using CLI.