IAM Programmatic access and AWS CLI

IAM Programmatic access and AWS CLI

Day 42 of #90DaysOfDevOps

Task-01

Create AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from AWS Console.

Task-02

Set up and install AWS CLI and configure your account credentials.


Solution 01:

Before creating the aws access key ID and secret access key, create one IAM user with the following permissions:

  • AmazonEC2FullAccess

  • AmazonS3FullAccess

Next, Click on "Create access key"

Then select "Command Line Interface (CLI)"

After that scroll down to select the confirmation check box and click on "Next".

Then after click on the "Create access key".

Done. The access key has been created and now you can download it.


Solution 02:

To install AWS CLI, go to the Ubuntu terminal and write the command sudo apt install awscli -y and hit enter. (For Cent OS: sudo yum install awscli -y)

Next, to configure the AWS CLI in your terminal, give the command aws configure and click enter. Then it will ask for the access key ID and the secret access key.

After that, your AWS CLI is configured and ready to access services.

Thank You.