This commit is contained in:
parent
3c9be22bc0
commit
b2c4f3c84e
1 changed files with 5 additions and 1 deletions
|
@ -70,7 +70,11 @@ func NewDNSProvider() (*DNSProvider, error) {
|
||||||
r := customRetryer{}
|
r := customRetryer{}
|
||||||
r.NumMaxRetries = maxRetries
|
r.NumMaxRetries = maxRetries
|
||||||
config := request.WithRetryer(aws.NewConfig(), r)
|
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{
|
return &DNSProvider{
|
||||||
client: client,
|
client: client,
|
||||||
|
|
Loading…
Reference in a new issue