aws-sdk-go-v2 icon indicating copy to clipboard operation
aws-sdk-go-v2 copied to clipboard

added a check if the config initialized with anon creds

Open RanVaknin opened this issue 2 years ago • 0 comments

For changes to files under the /model/ folder, and manual edits to autogenerated code (e.g. /service/s3/api.go) please create an Issue instead of a PR for those type of changes.

If there is an existing bug or feature this PR is answers please reference it here. https://github.com/aws/aws-sdk-go-v2/issues/1797

Description of changes: When config is created with aws.AnonymousCredentials the provider is being wrapped in a cache and not propagated to the client correctly.

This fix simply checks whether the config is initialized with anonymous creds, and if so, it doesn't wrap them in a cache.

RanVaknin avatar Aug 12 '22 22:08 RanVaknin