Skip to main content

Environment Variables

The following table lists the supported core configuration environment variables.

Environment variableDescription
AWS_ACCESS_KEY_IDSpecifies the AccessKeyId to use as a part of the credentials.
AWS_CONFIG_FILESpecifies the path to the shared config file. Defaults to ~/.aws/config.
AWS_DEFAULT_REGIONSpecifies the default region.
AWS_ENDPOINT_URLSpecifies a custom endpoint to connect to.
AWS_ENDPOINT_URL_<SERVICE IDENTIFIER>Specifies a custom endpoint to connect to for the service identified.
AWS_IGNORE_CONFIGURED_ENDPOINT_URLSSpecifies whether any configured values for custom endpoints should be ignored. Defaults to false.
AWS_MAX_ATTEMPTSSpecifies the maximum number of attempts for each retry. See Automatic Retries for more information.
AWS_PROFILESpecifies the default profile. Defaults to default.
AWS_REGIONSpecifies the region to use. If not specified, AWS_DEFAULT_REGION will be used.
AWS_RETRY_MODESpecifies the retry mode. See Automatic Retries for more information.
AWS_SECRET_ACCESS_KEYSpecifies the SecretAccessKey to use as a part of the credentials.
AWS_SESSION_TOKENSpecifies the SessionToken to use as a part of the credentials.
AWS_SHARED_CREDENTIALS_FILESpecifies the path to the shared credentials file. Defaults to ~/.aws/credentials.
AWS_USE_DUALSTACK_ENDPOINTSpecifies whether to use the IPv4/IPv6 dualstack endpoints.