From 113812b6279cdc4f1db6fcb95bcc523dcd7e828b Mon Sep 17 00:00:00 2001 From: Ramon de Klein Date: Sat, 18 Jan 2025 18:47:17 +0100 Subject: [PATCH] Use default STS endpoints when using empty STS endpoint with IAM (#2051) --- pkg/credentials/iam_aws.go | 3 --- 1 file changed, 3 deletions(-) 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 != "":