To perform AWS operations using CLI Interface

Before using Command Line Interface(CLI),login to AWS account and assign IAM Role

Add the user and allow Power User access

(Image Reference:AWS)

U just can’t use aws commands in your first go.To perform operations use “aws-help” command

(Image Reference:Windows CLI)

Use “AWS CONFIGURE” to configure(Access key and Secret key)with the user in your aws account

1.To create the key pair

Command:

(Image Reference:Windows CLI)

Result:

(Image Reference:AWS)

2. To create a Security Group(Intially use help command)

(Image Reference:Windows CLI)
(Image Reference:Windows CLI)

Command:

(Image Reference:Windows CLI)

Result:

3. To Launch an instance using the above created key pair and Security Group

Command:

(Image Reference:Windows CLI)

Result:

(Image Reference:AWS)
(Image Reference:AWS)

4.To create an EBS volume of 1GB

(Image Reference:Windows CLI)

Result:

(Image Reference:AWS)

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

Command:

(Image Reference:Windows CLI)

Result:

(Image Reference:AWS)