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

Add workaround for empty logging race condition #260

Closed
wants to merge 1 commit into from

Conversation

lorenyu
Copy link
Contributor

@lorenyu lorenyu commented May 9, 2023

Ticket

Resolves #258

Changes

see title

Context for reviewers

It seems that AWS recently introduced a change to the S3 service that created a race condition in the Terraform S3 provider that causes the S3 logging configuration to sometimes return an empty output when Terraform's AWS provider tries to read it. This causes the templata-infra CI to fail intermittently which is a pain since it also means that the template-infra CI can't clean up resources properly and that resources needed to be cleaned up manually.

This bug was reported on the terraform aws provider repo at hashicorp/terraform-provider-aws#31139

There seems to be a related PR on that repo created on April 24, 2023 that adds retries that should hopefully resolve this issue, but at time of writing (May 9, 2023) it has not yet been merged: hashicorp/terraform-provider-aws#30916

This PR adds the workaround documented in the first link.

I created #259 as a tech debt item to remove the workaround once proper fixes are ready

Testing

CI

@lorenyu lorenyu requested review from shawnvanderjagt and jamesbursa and removed request for jamesbursa and shawnvanderjagt May 9, 2023 14:29
@lorenyu lorenyu marked this pull request as draft May 9, 2023 17:11
@lorenyu
Copy link
Contributor Author

lorenyu commented May 9, 2023

workaround doesn't seem to work. i'll try something else...

@lorenyu lorenyu closed this May 9, 2023
@lorenyu lorenyu deleted the lorenyu/workaroundemptylogging branch May 9, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition creating aws_s3_bucket_logging resource sometimes produces "logging: empty output" error
1 participant