replace Id with ID

Co-authored-by: Steven E. Harris <seh@panix.com>
This commit is contained in:
pg2000 2022-06-27 20:57:13 +02:00 committed by GitHub
parent e1e48f876e
commit 4d0be69c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,10 +109,10 @@ func NewAWSSDProvider(domainFilter endpoint.DomainFilter, namespaceType string,
}
if assumeRole != "" {
if assumeRoleExternalId != "" {
log.Infof("Assuming role: %s with external id", assumeRole)
if assumeRoleExternalID != "" {
log.Infof("Assuming role %q with external ID %q", assumeRole, assumeRoleExternalID)
sess.Config.WithCredentials(stscreds.NewCredentials(sess, assumeRole, func(p *stscreds.AssumeRoleProvider) {
p.ExternalID = &assumeRoleExternalId
p.ExternalID = &assumeRoleExternalID
}))
} else {
log.Infof("Assuming role: %s", assumeRole)