libdns
Route53 for
This package implements the libdns interfaces for AWS Route53.
Authenticating
This package supports all the credential configuration methods described in the AWS Developer Guide, such as Environment Variables
, EC2 Instance Profile
and the AWS Credentials file
located in .aws/credentials
. You may also pass in static credentials directly (or via caddy's configuration).
The following IAM policy is a minimal working example to give libdns
permissions to manage DNS records:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Action": [
"route53:ListResourceRecordSets",
"route53:GetChange",
"route53:ChangeResourceRecordSets"
],
"Resource": [
"arn:aws:route53:::hostedzone/ZABCD1EFGHIL",
"arn:aws:route53:::change/*"
]
},
{
"Sid": "",
"Effect": "Allow",
"Action": [
"route53:ListHostedZonesByName",
"route53:ListHostedZones"
],
"Resource": "*"
}
]
}