Follow the instructions below to configure the CLI access for your
AWS Academy account
1) Install the AWS CLI for your operating system using the link given below
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
2) Run the command aws configure in your computer’s terminal/Git Bash/PowerShell and
enter the fields with random inputs for the access key and secret access key. For the
region enter as 'us-east-1' and output as 'json'.
This command should create your credential file.
After which, you can edit the Credentials file.as shown in the image below
devender.sharma260390@gmail.com
DA8BP9REZJ
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by devender.sharma260390@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
devender.sharma260390@gmail.com
DA8BP9REZJ
3) Retrieve the CLI credentials for your AWS Academy account as shown in the images
below. Please make sure to start the lab first.
a)
Click on the AWS Details tab and then click on Show to reveal the CLI
credentials
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by devender.sharma260390@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
devender.sharma260390@gmail.com
DA8BP9REZJ
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by devender.sharma260390@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.
4) Copy the entire highlighted text above and paste it into the following locations (Remove the
random text entered earlier)
a) Linux: .aws/credentials
b) MacOS: /Users/<user_name>/.aws/credentials
c) Windows : C:\Users\<user_name>\.aws\credentials
Please note that the credentials file will have to have the Access key, the Secret Key and the
Session Token as shown in the diagram below.
devender.sharma260390@gmail.com
DA8BP9REZJ
Proprietary content. ©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
This file is meant for personal use by devender.sharma260390@gmail.com only.
Sharing or publishing the contents in part or full is liable for legal action.