AWS credentials during Docker build process
The name of the environment variable is AWS_ACCESS_KEY_ID
vs AWS_ACCESS_KEY
You can review the full list from amazon doc
The following variables are supported by the AWS CLI
AWS_ACCESS_KEY_ID
– AWS access key.
AWS_SECRET_ACCESS_KEY
– AWS secret key. Access and secret key variables override credentials stored in credential and config files.
AWS_SESSION_TOKEN
– session token. A session token is only required if you are using temporary security credentials.
AWS_DEFAULT_REGION
– AWS region. This variable overrides the default region of the in-use profile, if set.
AWS_DEFAULT_PROFILE
– name of the CLI profile to use. This can be the name of a profile stored in a credential or config file, or default to use the default profile.
AWS_CONFIG_FILE
– path to a CLI config file.