-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Serialise origin bucket modifications #136
Conversation
You can't modify an S3 bucket's policy & public access block at the same time, AWS API will complain: OperationAborted: A conflicting conditional operation is currently in progress against this resource Serialise operations to the origin bucket so we don't run into this error. The suggested fix is from hashicorp/terraform-provider-aws#7628
/test all |
main.tf
Outdated
@@ -94,7 +94,7 @@ data "template_file" "default" { | |||
|
|||
resource "aws_s3_bucket_policy" "default" { | |||
count = ! local.using_existing_origin || var.override_origin_bucket_policy ? 1 : 0 | |||
bucket = local.bucket | |||
bucket = aws_s3_bucket.origin.bucket |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bucket = aws_s3_bucket.origin.bucket | |
bucket = join("", aws_s3_bucket.origin.*.bucket) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexjurkiewicz just a small typo to fix
Thank you! Fixed
…On Wed, 10 Mar 2021 at 08:47, Joe Niland ***@***.***> wrote:
***@***.**** requested changes on this pull request.
@alexjurkiewicz <https://github.com/alexjurkiewicz> just a small typo to
fix
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#136 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC4U5LLPQY6GUM5KOFCEVTTC2JOBANCNFSM4YYRRGNA>
.
|
This Pull Request has been updated, so we're dismissing all reviews.
/test bats |
/test readme |
/test terratest |
Thank you @alexjurkiewicz ! |
You can't modify an S3 bucket's policy & public access block at the same
time, AWS API will complain:
OperationAborted: A conflicting conditional operation is currently in progress against this resource
This error can appear during both deploy and destroy for the module.
Serialise operations to the origin bucket so we don't run into this
error. The suggested fix is from
hashicorp/terraform-provider-aws#7628
references
Fixes #104