Skip to content

Commit

Permalink
fix: set region on default config for AWS creds (#3480)
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Diaz <jo.diaz@celonis.com>
  • Loading branch information
joelddiaz authored Feb 12, 2025
1 parent 9e280c2 commit d497623
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/credentials/kubernetes/ecr/managed_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (p *managedIdentityCredentialHelper) getAuthToken(
"or project-specific role is not authorized to obtain an ECR auth token. " +
"Falling back to using controller's IAM role directly.",
)
cfg.Region = region
ecrSvc = ecr.NewFromConfig(cfg)
output, err = ecrSvc.GetAuthorizationToken(ctx, &ecr.GetAuthorizationTokenInput{})
if err != nil {
Expand Down

0 comments on commit d497623

Please # to comment.