Login credentials
The login credentials that determine the AWS account to be used are resolved by boto3
, the official Python SDK for AWS, during the boto3.Session.client
initialization.
Resolution order
In general, the credentials are resolved in the following order:
-
The credentials are read from the environment variables:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
-
The credentials are read from
[default]
section of the~/.aws/credentials
file