-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Changes to Lambda environment variables don't trigger a new version publication #14934
Comments
I think we should just add here something like |
I don't think the issue is limited to just environment variable changes, although this is probably the most likley config to change, it seems any config change didn't result in a new version being published. I've raised a PR to attempt a fix. |
@grahamhar I've just noticed that a new version is always created if |
@acerbisgianluca I added a new acceptance test first before writing the fix which seemed to prove the failure to publish the new version, adding the new code made the tests pass, so I'm reasonably sure #15116 will fix what you are seeing, or maybe we're seeing a different issue? |
Mhh I don't know, we will see when your PR will be merged. Now I'm pretty confused lol and I might have misunderstood your PR. Btw I was looking at the code and I found this: https://github.com/terraform-providers/terraform-provider-aws/blob/4ac98ce9911f302cb7181db28d4a8772b5e67112/aws/resource_aws_lambda_function.go#L927 |
My fork was old so I didn't see that 🤦 looks like my PR is redundant and I just need to update the provider version! |
@acerbisgianluca update of provider didn't work, I think I found the culprit though: The updated version is only stored if there is a code change, I'll try figure out a fix |
I think you should only update the if condition from |
@gdavison I've raised a PR for this and I think I have met all the requirements, if not could you help me out as it is my first PR against this repo. How do I go about moving forward on getting a review done? |
Just got hit with this last week whilst working on a project. Would be a great help to get this fixed @gdavison, @bflad, @YakDriver 🙂 Anything we can do to prioritise this? |
This has been released in version 3.13.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform CLI: 0.13.1
AWS Provider Version: 3.4.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
When I plan that configuration after changing environment variables,
voice-gram-skill-alias
should get the value for function_version aftervoice-gram-skill
new version has been published. The documentation also states qualified_arn - The Amazon Resource Name (ARN) identifying your Lambda Function Version (if versioning is enabled via publish = true).Actual Behavior
Actually, when I plan this configuration,
voice-gram-skill-alias
is set to $LATEST and doesn't wait for thevoice-gram-skill
version to be published even ifpublish
is set to true, as you can see below. Furthermore,version
andqualified_arn
aren't updated and remain set to$LATEST
.Steps to Reproduce
aws_lambda_function
with environment variables andpublish
set to trueterraform plan
The text was updated successfully, but these errors were encountered: