From 790a78292a993e5f5da9f0ff6d923da762a55594 Mon Sep 17 00:00:00 2001 From: Martin Linkhorst Date: Wed, 18 Apr 2018 13:51:28 +0200 Subject: [PATCH] fix: actually change the correct config object --- provider/aws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/aws.go b/provider/aws.go index e10f5b3bf3..eb284de46e 100644 --- a/provider/aws.go +++ b/provider/aws.go @@ -102,7 +102,7 @@ func NewAWSProvider(domainFilter DomainFilter, zoneIDFilter ZoneIDFilter, zoneTy if assumeRole != "" { log.Infof("Assuming role: %s", assumeRole) - config.WithCredentials(stscreds.NewCredentials(session, assumeRole)) + session.Config.WithCredentials(stscreds.NewCredentials(session, assumeRole)) } provider := &AWSProvider{