@@ -31,7 +31,9 @@ _Please contribute by adding a CLI example._
31
31
| -----------------------| -------------|
32
32
| ` AWS_ACCESS_KEY_ID ` | Managed by the AWS client (` AWS_ACCESS_KEY_ID_FILE ` is not supported) |
33
33
| ` AWS_HOSTED_ZONE_ID ` | Override the hosted zone ID |
34
+ | ` AWS_PROFILE ` | Managed by the AWS client (` AWS_PROFILE_FILE ` is not supported) |
34
35
| ` 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) |
35
37
| ` AWS_SECRET_ACCESS_KEY ` | Managed by the AWS client (` AWS_SECRET_ACCESS_KEY_FILE ` is not supported) |
36
38
37
39
The 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).
54
56
55
57
AWS Credentials are automatically detected in the following locations and prioritized in the following order:
56
58
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 ` )
59
61
3 . Amazon EC2 IAM role
60
62
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
+
61
68
If ` AWS_HOSTED_ZONE_ID ` is not set, Lego tries to determine the correct public hosted zone via the FQDN.
62
69
63
70
See also:
64
71
65
72
- [ 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 )
67
75
68
76
## Policy
69
77
0 commit comments