-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[REGRESSION] v3.13.0 causes perpetual diff of resources containing lambda version number #15952
Comments
HI @lijok, thanks for raising this issue. Can you please provide the Terraform configuration that is causing the diffs? It will make it easier to reproduce the problem. |
Thanks for having a look at this @gdavison |
@gdavison luckily we've got a ton of lambda's running, so noticed that this only happens with lambdas that have a vpc config |
Guessing it's related to this change |
I experience the same problem. I also have deeply nested modules and it would be hard to extract a minimal example, but I did some debugging. Not sure if it helps with the fix, but here's what I found: After looking at #15121 I noticed that (both here and for me) I added some debug logs in
Function
In this case, both FWIW, extra debug when
I'm afraid my ability to debug the plugin ends here, hope it helps. If there's any other debugging info I can add that would help with diagnosis or fixing, let me know. |
Looking closely through the logs I also found the following:
|
Could this also cause issues with other items that are nested config such as dead_letter_config and file_system_config? |
Thanks to @maciejp-ro's PR, I've identified the problem: when we test an attribute for changes, it always incorrectly returns that there is a change if there is a |
@gdavison does anyone know when this might be fixed? |
@lijok, this is due to an issue in the Terraform Plugin SDK that the AWS Provider uses. The issue to track in that project is hashicorp/terraform-plugin-sdk#617. Once that issue is resolved and we merge that version of the Plugin SDK, it will resolve this issue |
minimizes the impact of hashicorp/terraform-provider-aws#15952
@gdavidson the comments streams on hashicorp/terraform-plugin-sdk#617 and hashicorp/terraform-plugin-sdk#643 now suggest that this might be best fixed in this repo after all, by @grahamhar's #17610. |
* feat(lambda): added image input This reverts commit 746c740. * ci: lambda requires aws provider 3.19 * fix(lambda): set aws_lambda_function package_type * ci: lambda requires aws provider 3.19 * fix(lambda): don't pass layers, handler or runtime when using a container image * refactor(lambda): add vpc_config block only when needed minimizes the impact of hashicorp/terraform-provider-aws#15952 * feat(lambda): added publish variable so you can disable publishing versions, eg. as a workaround for the perpetual diff problem * feat(rds/postgres/management_lambda): disabled lambda version publishing as a workaround for the perpetual diff problem * docs: example lambdas should no longer be affected by perpetual diffs
This is resolved in the latest version of the provider. I'm going to close this issue |
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 CLI and Terraform AWS Provider Version
Affected Resource(s)
I'm constantly getting diffs for lambdas that have a vpc config. The diffs look like this (minified a bit, only change is always version and qualified_arn), no matter how many times I run apply
Code (you will need to provide s3 bucket and key)
Steps
Note
This only happens when the lambda has a vpc config
The text was updated successfully, but these errors were encountered: