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{