AWS API Credentials Order
- Environment variables such as
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- Application code properties (like
boto3.session(region_name='us-west-2', profile_name='account01')
)profile_name=''
and--profile
are used for assuming other roles if you are using API key-based authentication.
- Local credentials profile file (
~/.aws/credentials
)- You can …