Configuration and Credentials File Settings
Supported Configuration Options
aws_access_key_id
Specifies the AWS access key used as part of the credentials to authenticate the command request. Although this can be stored in the AWSCONF
file, we recommend that you store this in the AWSCRED
file.
Can be overridden by the AWS^ACCESS^KEY^ID
environment variable. You can't specify the access key ID as a command line option.
aws_access_key_id = AKIAIOSFODNN7EXAMPLE
aws_secret_access_key
Specifies the AWS secret key used as part of the credentials to authenticate the command request. Although this can be stored in the AWSCONF
file, we recommend that you store this in the AWSCRED
file.
Can be overridden by the AWS^SECRET^ACCESS^KEY
environment variable. You can't specify the secret access key as a command line option.
aws_secret_access_key = wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
region
Specifies the AWS Region to send requests to for commands requested using this profile.
You can specify any of the Region codes available for the chosen service as listed in AWS Regions and Endpoints in the Amazon Web Services General Reference.
You can override this value by using the AWS^REGION
environment variable, AWS^DEFAULT^REGION
environment variable, or the REGION
command line option.
region = us-west-2
endpoint_url
Specifies an alternate endpoint for API requests.
Can be overridden by the ENDPOINT^URL
environment variable.
endpoint_url = http://localhost:5000
For information on the possible AWS S3 configuration options, see Configure the AWS CLI.