-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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): CDK does not update Lambda environment variables #26184
Comments
Seems like this happens specifically if you skip the |
Nevermind, I can no longer reproduce. Looks like its working fine. |
|
Describe the bug
After deploying a Lambda function, all future modifications to the function's environment variables must be done manually.
Changing the environment variables in CDK and redeploying does not update the variables.
Expected Behavior
CDK should update the Lambda function configuration such that it matches what is codified.
Current Behavior
CDK ignores changes to Lambda environment variables.
Reproduction Steps
Deploy a lambda function with environment variables, for example:
Now change the LOG_LEVEL variable from 'INFO' to 'DEBUG' and redeploy your stack.
The variable value does not change.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.86.0 (build 1130fab)
Framework Version
No response
Node.js Version
v16.14.0
OS
MacOS Catalina
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: