diff --git a/providers/dns/route53/route53.go b/providers/dns/route53/route53.go index 934f0a2d..e16e12f0 100644 --- a/providers/dns/route53/route53.go +++ b/providers/dns/route53/route53.go @@ -70,7 +70,11 @@ func NewDNSProvider() (*DNSProvider, error) { r := customRetryer{} r.NumMaxRetries = maxRetries config := request.WithRetryer(aws.NewConfig(), r) - client := route53.New(session.New(config)) + session, err := session.NewSessionWithOptions(session.Options{Config: *config}) + if err != nil { + return nil, err + } + client := route53.New(session) return &DNSProvider{ client: client,