-
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
aws_lambda_function always updates even with no changes #9786
Comments
i have the same issue. how to solve it? |
In the latest TF
I now get this error since it is a computed attribute.
|
I have the exact some issue but at least the workaround worked for me on the following versions:
But I have some concerns if it will work for version 0.13.x since I'm planing to make the upgrade. |
I can also confirm this with provider.aws 3.21, terraform 0.13 with data.archive_file as source and using the outputsha256 as source in the layer. Really annoying if you don't to changes since it is changing the version as well.
Doesn't have to do anything with the terraform version. It is provider's bug. As you can see the previous comment from yours it is using 0.14 and me know I can confirm the same in 0.13 |
I can confirm that the same exact issue exists on 3.23.0 |
Issue exists
|
+1 |
Unfortunately the workaround does not work if you use a Lambda alias pointing to your function version. Ignoring changes to resource "aws_lambda_alias" "main" {
name = "LIVE"
function_name = aws_lambda_function.main.arn
function_version = aws_lambda_function.main.version
description = var.tag
} |
This is probably the root cause or may be intrinsically correlated to #17385 |
Optimistic that this might be fixed by #17610 |
Hi All, |
I had this problem with 3.31. But updating to 3.57 fixed it. |
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. |
Community Note
Terraform Version
Terraform v0.12.6
terraform-provider-aws 2.23.0
Affected Resource(s)
aws_lambda_function
Terraform Configuration Files
Expected Behavior
Terraform should not try to update the resource.
Actual Behavior
Terraform always wants to update the resource, regardless if there are changes or not.
Debug output
Steps to Reproduce
terraform apply
Important Factoids
A workaround is to ignore
version
andqualified_arn
.The text was updated successfully, but these errors were encountered: