Previous: Creating Multiple Profiles, Up: Configuring the CLI [Index]
The AWS CLI uses a set of credential providers to look for AWS credentials. Each credential provider looks for credentials in a different place, such as the system or user environment variables, local AWS configuration files, or explicitly declared on the command line as a parameter. The AWS CLI looks for credentials and configuration settings by invoking the providers in the following order, stopping when it finds a set of credentials to use:
aws configure
. The file is located at ~/.aws/credentials
on Linux or macOS. This file can contain the credential details for the
‘default’ profile and any named profiles.
aws configure
. The file is located at ~/.aws/config on Linux
or macOS. This file contains the configuration settings for the ‘default’
profile and any named profiles.
Previous: Creating Multiple Profiles, Up: Configuring the CLI [Index]