Environment Variables
The following table lists the supported core configuration environment variables.
| Environment variable | Description |
|---|---|
| AWS_ACCESS_KEY_ID | Specifies the AccessKeyId to use as a part of the credentials. |
| AWS_CONFIG_FILE | Specifies the path to the shared config file. Defaults to ~/.aws/config. |
| AWS_DEFAULT_REGION | Specifies the default region. |
| AWS_ENDPOINT_URL | Specifies 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_URLS | Specifies whether any configured values for custom endpoints should be ignored. Defaults to false. |
| AWS_MAX_ATTEMPTS | Specifies the maximum number of attempts for each retry. See Automatic Retries for more information. |
| AWS_PROFILE | Specifies the default profile. Defaults to default. |
| AWS_REGION | Specifies the region to use. If not specified, AWS_DEFAULT_REGION will be used. |
| AWS_RETRY_MODE | Specifies the retry mode. See Automatic Retries for more information. |
| AWS_SECRET_ACCESS_KEY | Specifies the SecretAccessKey to use as a part of the credentials. |
| AWS_SESSION_TOKEN | Specifies the SessionToken to use as a part of the credentials. |
| AWS_SHARED_CREDENTIALS_FILE | Specifies the path to the shared credentials file. Defaults to ~/.aws/credentials. |
| AWS_USE_DUALSTACK_ENDPOINT | Specifies whether to use the IPv4/IPv6 dualstack endpoints. |