(aws-lambda): CDK does not update Lambda environment variables #26184
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
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: