You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore UnsupportedArgument error for GetBucketAccelerateConfiguration in GovCloud regions (#85)
This PR resolves [issue 1407](aws-controllers-k8s/community#1407) related to S3 accelerate error handling in govcloud accounts.
Co-authored-by: Mike Lumetta <[email protected]>
Co-authored-by: Giang Nguyen <[email protected]>
Co-authored-by: Manali Bhatt <[email protected]>
Issue #, if available: 1407
Description of changes: This PR adds a check for the AWS error code `UnsupportedArgument` in `addPutFieldsToSpec` in pkg/resource/bucket/hook.go and uses the default transfer accelerate configuration for the spec if that error is returned. The `UnsupportedArgument` error is not documented by the S3 docs but is returned by the S3 API in GovCloud regions for us and other GovCloud users, as we documented in [this comment](aws-controllers-k8s/community#1407 (comment)).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
0 commit comments