Skip to content
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

aws_s3_bucket cross-region-replication and versioning sub-resources don't seem to execute in order #15093

Closed
silvermy opened this issue Jun 5, 2017 · 1 comment

Comments

@silvermy
Copy link

silvermy commented Jun 5, 2017

Terraform version: 0.9.6

When a aws_s3_bucket resource containing both versioning=true and cross-region-replication, one would expect versioning to be turned on first, as that is a requirement for cross-region-replication.

But, it seems there is a "race condition" of some sort that occasionally leads to the opposite happening, in which case an error is generated saying that cross-region-replication cannot be turned on due to lack of versioning.

Re-running terraform apply does not seem to fix things. Also, the state file seems to believe that the cross-region-replication part has already been completed. The only way we could get things to work was to turn on versioning manually in the console, then remove the replication.* attributes from the bucket resource in the state file, then rerun apply.

@ghost
Copy link

ghost commented Apr 9, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants