You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
# Copy-paste your Terraform configurations here - for large Terraform configs,# please use a service like Dropbox and share a link to the ZIP file. For# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
Debug Output
Panic Output
Expected Behavior
if s3key is not found, on next plan, terraform shows diff that lambda needs to be updated
Actual Behavior
if s3key is not found, terraform saves the key to state anyway, so there's no diff between the code and the state, so it doesnt want to redeploy the lambda on next plan
Steps to Reproduce
terraform apply
change s3key to non-existing one
terraform apply
observe the apply fail due to key not found
change nothing
terraform plan
observe plan output empty
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
@lijok Thanks for raising this issue.
It has already been noticed in #25886. I'm going to close this one as a duplicate so that we can concentrate discussion in the linked issue.
Please add any additional comments there.
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.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.14.6
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
Expected Behavior
if s3key is not found, on next plan, terraform shows diff that lambda needs to be updated
Actual Behavior
if s3key is not found, terraform saves the key to state anyway, so there's no diff between the code and the state, so it doesnt want to redeploy the lambda on next plan
Steps to Reproduce
terraform apply
terraform apply
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: