@@ -31,7 +31,9 @@ _Please contribute by adding a CLI example._
3131| -----------------------| -------------|
3232| ` AWS_ACCESS_KEY_ID ` | Managed by the AWS client (` AWS_ACCESS_KEY_ID_FILE ` is not supported) |
3333| ` AWS_HOSTED_ZONE_ID ` | Override the hosted zone ID |
34+ | ` AWS_PROFILE ` | Managed by the AWS client (` AWS_PROFILE_FILE ` is not supported) |
3435| ` AWS_REGION ` | Managed by the AWS client (` AWS_REGION_FILE ` is not supported) |
36+ | ` AWS_SDK_LOAD_CONFIG ` | Retrieve the region from the CLI config file (` AWS_SDK_LOAD_CONFIG_FILE ` is not supported) |
3537| ` AWS_SECRET_ACCESS_KEY ` | Managed by the AWS client (` AWS_SECRET_ACCESS_KEY_FILE ` is not supported) |
3638
3739The environment variable names can be suffixed by ` _FILE ` to reference a file instead of a value.
@@ -54,16 +56,22 @@ More information [here](/lego/dns/#configuration-and-credentials).
5456
5557AWS Credentials are automatically detected in the following locations and prioritized in the following order:
5658
57- 1 . Environment variables: ` AWS_ACCESS_KEY_ID ` , ` AWS_SECRET_ACCESS_KEY ` , ` AWS_REGION ` , [ ` AWS_SESSION_TOKEN ` ]
58- 2 . Shared credentials file (defaults to ` ~/.aws/credentials ` )
59+ 1 . Environment variables: ` AWS_ACCESS_KEY_ID ` , ` AWS_SECRET_ACCESS_KEY ` , [ ` AWS_SESSION_TOKEN ` ]
60+ 2 . Shared credentials file (defaults to ` ~/.aws/credentials ` , profiles can be specified using ` AWS_PROFILE ` )
59613 . Amazon EC2 IAM role
6062
63+ The AWS Region is automatically detected in the following locations and prioritized in the following order:
64+
65+ 1 . Environment variables: ` AWS_REGION `
66+ 2 . Shared configuration file if ` AWS_SDK_LOAD_CONFIG ` is set (defaults to ` ~/.aws/config ` , profiles can be specified using ` AWS_PROFILE ` )
67+
6168If ` AWS_HOSTED_ZONE_ID ` is not set, Lego tries to determine the correct public hosted zone via the FQDN.
6269
6370See also:
6471
6572- [ sessions] ( https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/sessions.html )
66- - [ Setting AWS Credentials] ( https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-credentials.html#setup-credentials-setting )
73+ - [ Setting AWS Credentials] ( https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials )
74+ - [ Setting AWS Region] ( https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-the-region )
6775
6876## Policy
6977
0 commit comments