- AWS account
- IAM user with admin access (Refer Ex-1)
- Login to AWS account Link: https://aws.amazon.com/
- Go to IAM service
- Click on Users
- Select the user for which you want to create access keys
- Click on Security Credentials tab
- In the same page, scroll down to Access Keys section and click on Create Access Key
- In Access key best practices & alternatives page click on others and click next to proceed
- Provide description and click on Create Access Key
- Download the CSV file and store it in a secure location because this is the only time you will be able to see the secret access key
- Download and install AWS CLI Link
- Verify the installation
aws --version
which aws
- Configure AWS CLI using the access key and secret access key
aws configure
- Provide the access key and secret access key
- Provide the region and output format
- Now you can use AWS CLI to perform any operation
- To verify the configuration
aws sts get-caller-identity
- Success! You have created and used access keys using AWS CLI