Skip to main content

How to Configure AWS CLI

Configure AWS CLI Profile

AWS_PROFILE=dev
aws configure --profile $AWS_PROFILE

Access Key ID and Secret Access Key can be found in:

cat ~/.aws/credentials

Login

aws sso login --profile $AWS_PROFILE

Configuration File

The configuration file can be found in:

cat ~/.aws/config