-
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
[Bug]: Provider produced inconsistent final plan with aws_lambda_function skip_destroy #29777
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Same for us. Provider 4.56 works fine. |
Same here :-( |
We've pinned provider 4.56.0, as you guys have, that works but bit of a faff when we commit the provider to pipelines to keep them 'static'. |
Hi all 👋 Thank you for taking the time to raise this, and for the additional reports. We've attempted to reproduce this internally, but so far have not been able to. @xxfatumxx, I know you mentioned that you're unable to provide an exact configuration. Are you able to provide any information around what attributes are being changed during the If anyone else who has experienced this is able to provide a working reproduction, or any additional details, or even debug logging (redacted as needed) we'd be grateful for that as well. |
Got same issue today. I use a module for the lambda function "terraform-aws-modules/lambda/aws". FWIW, I can share the config of the module here that was originally working.
|
@meetvasu15 👋 Thank you for supplying that! Unfortunately we're still not able to reproduce the issue. Were any changes made to the configuration when the issue started to present itself? |
@justinretzolk Just the tags were updated. The issue I saw is on my automated CICD setup, I tried reproducing it on my local with the same lambda tf but couldn't. I would suspect this has to do with some combination of tf, aws version.
And on my local, which doesnt have the issue has the following version info
|
@justinretzolk, here is our plan that prompts the error:
Slightly redacted some values, but beyond code hash changes it's mostly wanting to add skip_destroy which prompts the issue. Then the eventual error:
Versions:
|
Tested on localstack with dummy lambda and it works fine on 4.57.0 :( Also tried: forcefully use |
I'm having the same issue. λ terraform version
|
Same here. Reverting back to |
The 4.57.1 version fixed (at least) my issues |
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.3.6
AWS Provider Version
4.57
Affected Resource(s)
aws_lambda_function.lambda_function detected so far, might be more
Expected Behavior
lambda should be deployed successfully.
Actual Behavior
Returns error "Provider produced inconsistent final plan" for all lambda functions'
skip_destroy
attributeRelevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Rollback to 4.55 rectifies the issue.
Debug Output
No response
Panic Output
No response
Important Factoids
Caught it on dev env so for security reasons cannot provide more detailed code and outputs, also haven't tested it on dummy code yet. If it won't be reproduced with dummy lambda, I will try to investigate further on my side. Thank you in advance.
References
Relates #29646.
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: