Commit 921a26b
authored
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 <mike.lumetta@adhocteam.us>
Co-authored-by: Giang Nguyen <nguyen_giang@bah.com>
Co-authored-by: Manali Bhatt <bhatt_manali@bah.com>
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.1 parent 9313026 commit 921a26b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments