r/aws_lambda_function: terraform plan crashes on HasChange("filename") in CustomizeDiff introduced in #3032 #3605
Labels
bug
Addresses a defect in current functionality.
crash
Results from or addresses a Terraform crash or kernel panic.
service/lambda
Issues and PRs that pertain to the lambda service.
Milestone
terraform version
Terraform v0.11.3
terraform-provider-aws version
Terraform v1.10.0
Affected Resource(s)
Please list the resources as a list, for example:
aws_lambda_function
Terraform Configuration Files
(omitted, I can make these generic but the above issues seem to document my problem already)
Panic Output
Panic crash.log (truncated), I can provide the whole log if necessary:
https://gist.github.com/erran/5d99bcd4fa5433adb636800e23abddec
crash-truncated.log (click to collapse)
Expected Behavior
The plan should succeed like it did before upgrading from v1.9.0.
Actual Behavior
terraform plan
crashes. 💥Steps to Reproduce
terraform plan
with aaws_lambda_function
resource which hasfilename
unset in the state file.Setting
filename
to empty string in the statefile seemed to move the error tosource_code_hash
which was computed before in my case.References
It looks like hashicorp/terraform#17261 this issue which started happening in this resource after #3032 was released.
See also #3194 (comment) which is blocked by another place this issue is hit.
The text was updated successfully, but these errors were encountered: