I understand the AWS CLI can make use of the config and credentials files for storing it's local profile configurations.
Does anyone know of any general guidance and or best practice with regards to what should go in each file?
I understand the AWS CLI can make use of the config and credentials files for storing it's local profile configurations.
Does anyone know of any general guidance and or best practice with regards to what should go in each file?
The AWS documentation which covers the two files can be found under Configuration and Credential Files in the AWS CLI documentation.
To summarise:
credentials file is intended for storing just credential information for the configured profiles. (Currently limited to: aws_access_key_id, aws_secret_access_key and aws_session_token)config file is intended for storing non-sensitive configuration options for the configured profiles.config file can also be configured to contain any information which could also be stored in the credentials file.config and credentials file, those in the credentials file will take precedence.