1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

ROUTE53: Add AWS_PROFILE functionality (#567)

* Add AWS_PROFILE functionality for Route53 provider

* Document named profiles authentication option for Route53
This commit is contained in:
Hugo Barros
2019-12-04 15:17:28 +00:00
committed by Tom Limoncelli
parent b928e7c22f
commit 0f396cd135
2 changed files with 8 additions and 1 deletions

View File

@ -47,7 +47,7 @@ func newRoute53(m map[string]string, metadata json.RawMessage) (*route53Provider
if keyID != "" || secretKey != "" {
config.Credentials = credentials.NewStaticCredentials(keyID, secretKey, tokenID)
}
sess := session.New(config)
sess := session.Must(session.NewSession(config))
var dls *string = nil
if val, ok := m["DelegationSet"]; ok {