-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: aws_s3_bucket_lifecycle_configuration times out when another Lifecycle config is present. #41199
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Hi, I am facing a similar issue. Additionally when I am adding a sleep time of 60 seconds between the 2 aws_s3_bucket_lifecycle_configuration resources, I see alternatively one is getting created and other one getting destroyed.
The terraform plan shows that its replacing the rule aws_s3_bucket_lifecycle_configuration.logging_bucket[0] will be updated in-place~ resource "aws_s3_bucket_lifecycle_configuration" "logging_bucket" { aws_s3_bucket_lifecycle_configuration.logging_bucket_delete_expired_object[0] will be updated in-place~ resource "aws_s3_bucket_lifecycle_configuration" "logging_bucket_delete_expired_object" { |
Hey @Tesseract99 👋 Thank you for taking the time to raise this! I suspect what's happening here is a result of the following note in the
While you're not defining two separate lifecycle configuration resources, as you mentioned, you've got an additional organizationally-defined rule being added. The I tried to look around a bit at setting a default rule like you mentioned, but didn't find a way to do so. Can you give me a better idea of how that's being done? That may give a better indication as to how to resolve this. My initial thought is that doing so would involve adding whatever the "default" rule is to the @rishabhToshniwal 👋 Your issue relates to the quote that I called out above from the |
@justinretzolk You are right, I resolved my issue with setting 2 rules in the same aws_s3_bucket_lifecycle_configuration. |
Terraform Core Version
1.5.7
AWS Provider Version
5.84.0
Affected Resource(s)
aws v5.84.0 - aws_s3_bucket_lifecycle_configuration
Expected Behavior
aws_s3_bucket_lifecycle_configuration.my_bucket creation should have completed without any error.
Infact, same code works fine when
Actual Behavior
Terraform apply fails with the below error. But, the S3 bucket and even the Life Cycle configuration would have been created successfully if I check from the AWS console.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
Panic Output
No response
Important Factoids
References
#25939
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: