-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 Replication Configuration returns 400 error but thinks it has applied anyway #10909
Comments
Hi @ChadScott Could you please run Also, I tried again the documentation from the website, and all works fine. Ninir |
As I mentioned in the report, there's a lot of proprietary info in there. I can provide the output via keybase.io or similar, if that works. |
Then, just output the errors you got, with the body (i.e. the related XML), should be fine! |
|
I think I've diagnosed the problem. The documentation states:
This appears to be compulsory, however. Leaving it out produces the 400 error. Further, despite Terraform completing successfully, replication is not enabled on the bucket. Both the GUI and API show it as not enabled. |
Okay, I finally got it to work properly. I defined This seems to have properly enabled it on the bucket with the configuration I've specified. |
Hey @ChadScott With your inputs, I was able to replicate the issue. As you said, the issue is with the StorageClass, which is added to the request even if the value is empty (the I will investigate this and come back with a fix ASAP! Sorry for the issue, |
I think the more troubling part is that Terraform stored the completed state in the state file and thought it was enabled when it wasn't. |
Hey @ChadScott Just made #10921 to fix it. Sorry for the noise here! |
provider/aws: Fixed the need of sending S3 Replication StorageClass when not set Fixes #10909.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
There's proprietary info in the debug output. I can provide this separately.
Expected Behavior
Replication should have been enabled on the bucket with the role given without error.
Actual Behavior
A 400 error is returned from Amazon. In addition, the error seems to be ignored as the state file believes replication is enabled when it is not.
The text was updated successfully, but these errors were encountered: