-
Notifications
You must be signed in to change notification settings - Fork 9.5k
[Bug]: aws_s3_bucket_lifecycle_configuration inserting undeclared values that are "known after apply" since 5.86.0 #41537
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
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
We're also seeing this kind of drift. Just to understand what exactly is happening here, If one were to apply the plan, would this solve the issue going forward? |
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.94.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
1.10.5
AWS Provider Version
5.88.0
Affected Resource(s)
Expected Behavior
It seems that since aws provider 5.86.0 the plans are inserting values of
known after apply
for undeclared properties (days, prefix, etc). this has caused all of our tests viaterraform test
to fail as it can no longer compute comparisons when searching within the lifecycle rules. example error:here is an example working output of a plan from provider version 5.85.0 - please expand
Actual Behavior
here is a broken plan from 5.86.0 and still present in 5.88.0, please expand
note in the failing plan how there are suddenly properties for prefix and days appear with
known after apply
. we are not declaring those and no code has changed in between those two plans. the only difference is the provider versions.Terraform Configuration Files
Module file:
Test file:
Steps to Reproduce
run the code above on 5.86 or newer and then again on 5.85 and note the differences in the plan output. pre 5.86 days will be 0, after it is
known after apply
. This is causing the above test to fail as it cannot calculate for days. If i try to setdays == 0
then it returns a warningDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: