2019-03-08 18:47:06 +00:00
Name = "Amazon Route 53"
Description = '' '' ''
URL = "https://aws.amazon.com/route53/"
Code = "route53"
2019-04-17 19:32:38 +00:00
Since = "v0.3.0"
2019-03-08 18:47:06 +00:00
Example = '' '' ''
Additional = '' '
## Description
AWS Credentials are automatically detected in the following locations and prioritized in the following order :
2020-05-30 12:00:57 +00:00
1 . Environment variables : ` AWS_ACCESS_KEY_ID ` , ` AWS_SECRET_ACCESS_KEY ` , [ ` AWS_SESSION_TOKEN ` ]
2 . Shared credentials file ( defaults to ` ~ / . aws / credentials ` , profiles can be specified using ` AWS_PROFILE ` )
2019-03-08 18:47:06 +00:00
3 . Amazon EC2 IAM role
2020-05-30 12:00:57 +00:00
The AWS Region is automatically detected in the following locations and prioritized in the following order :
1 . Environment variables : ` AWS_REGION `
2 . Shared configuration file if ` AWS_SDK_LOAD_CONFIG ` is set ( defaults to ` ~ / . aws / config ` , profiles can be specified using ` AWS_PROFILE ` )
2019-03-08 18:47:06 +00:00
If ` AWS_HOSTED_ZONE_ID ` is not set , Lego tries to determine the correct public hosted zone via the FQDN .
2020-01-09 08:12:27 +00:00
See also :
- [ sessions ] ( https : / / docs . aws . amazon . com / sdk-for-go / v1 / developer-guide / sessions . html )
2020-05-30 12:00:57 +00:00
- [ Setting AWS Credentials ] ( https : / / docs . aws . amazon . com / sdk-for-go / v1 / developer-guide / configuring-sdk . html #specifying-credentials)
- [ Setting AWS Region ] ( https : / / docs . aws . amazon . com / sdk-for-go / v1 / developer-guide / configuring-sdk . html #specifying-the-region)
2019-03-08 18:47:06 +00:00
## Policy
The following AWS IAM policy document describes the permissions required for lego to complete the DNS challenge .
` ` ` json
{
"Version" : "2012-10-17" ,
"Statement" : [
{
"Sid" : "" ,
"Effect" : "Allow" ,
"Action" : [
"route53:GetChange" ,
"route53:ChangeResourceRecordSets" ,
"route53:ListResourceRecordSets"
] ,
"Resource" : [
"arn:aws:route53:::hostedzone/*" ,
"arn:aws:route53:::change/*"
]
} ,
{
"Sid" : "" ,
"Effect" : "Allow" ,
"Action" : "route53:ListHostedZonesByName" ,
"Resource" : "*"
}
]
}
` ` `
'' '
[ Configuration ]
[ Configuration . Credentials ]
2021-06-28 01:31:18 +00:00
AWS_ACCESS_KEY_ID = "Managed by the AWS client. Access key ID (`AWS_ACCESS_KEY_ID_FILE` is not supported, use `AWS_SHARED_CREDENTIALS_FILE` instead)"
AWS_SECRET_ACCESS_KEY = "Managed by the AWS client. Secret access key (`AWS_SECRET_ACCESS_KEY_FILE` is not supported, use `AWS_SHARED_CREDENTIALS_FILE` instead)"
2020-01-09 08:12:27 +00:00
AWS_REGION = "Managed by the AWS client (`AWS_REGION_FILE` is not supported)"
2021-06-28 01:31:18 +00:00
AWS_HOSTED_ZONE_ID = "Override the hosted zone ID."
2020-05-30 12:00:57 +00:00
AWS_PROFILE = "Managed by the AWS client (`AWS_PROFILE_FILE` is not supported)"
2021-06-28 01:31:18 +00:00
AWS_SDK_LOAD_CONFIG = "Managed by the AWS client. Retrieve the region from the CLI config file (`AWS_SDK_LOAD_CONFIG_FILE` is not supported)"
2019-03-08 18:47:06 +00:00
[ Configuration . Additional ]
2021-06-28 01:31:18 +00:00
AWS_SHARED_CREDENTIALS_FILE = "Managed by the AWS client. Shared credentials file."
2019-04-17 18:58:34 +00:00
AWS_MAX_RETRIES = "The number of maximum returns the service will use to make an individual API request"
2019-03-08 18:47:06 +00:00
AWS_POLLING_INTERVAL = "Time between DNS propagation check"
AWS_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
AWS_TTL = "The TTL of the TXT record used for the DNS challenge"
[ Links ]
API = "https://docs.aws.amazon.com/Route53/latest/APIReference/API_Operations_Amazon_Route_53.html"
GoClient = "https://github.com/aws/aws-sdk-go/aws"