dns: gomodules.xyz/dns/aws Index | Files

package aws

import "gomodules.xyz/dns/aws"

Package route53 implements a DNS provider for solving the DNS-01 challenge using AWS Route 53 DNS.


Package Files


type DNSProvider Uses

type DNSProvider struct {
    // contains filtered or unexported fields

DNSProvider implements the acme.ChallengeProvider interface

func Default Uses

func Default() (*DNSProvider, error)

NewDNSProvider returns a DNSProvider instance configured for the AWS Route 53 service.

AWS Credentials are automatically detected in the following locations and prioritized in the following order: 1. Environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,


2. Shared credentials file (defaults to ~/.aws/credentials) 3. Amazon EC2 IAM role

See also: https://github.com/aws/aws-sdk-go/wiki/configuring-sdk

func New Uses

func New(opt Options) (*DNSProvider, error)

func (*DNSProvider) DeleteARecord Uses

func (r *DNSProvider) DeleteARecord(domain string, ip string) error

func (*DNSProvider) DeleteARecords Uses

func (r *DNSProvider) DeleteARecords(domain string) error

func (*DNSProvider) EnsureARecord Uses

func (r *DNSProvider) EnsureARecord(domain string, ip string) error

type Options Uses

type Options struct {
    AccessKeyId     string `json:"access_key_id" envconfig:"AWS_ACCESS_KEY_ID" form:"aws_access_key_id"`
    SecretAccessKey string `json:"secret_access_key" envconfig:"AWS_SECRET_ACCESS_KEY" form:"aws_secret_access_key"`
    HostedZoneID    string `json:"hosted_zone_id" envconfig:"AWS_HOSTED_ZONE_ID" form:"aws_hosted_zone_id"`

Package aws imports 15 packages (graph) and is imported by 3 packages. Updated 2019-06-08. Refresh now. Tools for package owners.