diff --git a/pkg/credentials/iam_aws.go b/pkg/credentials/iam_aws.go index 0ba06e710..e3230bb18 100644 --- a/pkg/credentials/iam_aws.go +++ b/pkg/credentials/iam_aws.go @@ -153,9 +153,6 @@ func (m *IAM) RetrieveWithCredContext(cc *CredContext) (Value, error) { } endpoint := m.Endpoint - if endpoint == "" { - endpoint = cc.Endpoint - } switch { case identityFile != "":