cli: cdk migrate
outputs an incorrect template for Lambda environment variables
#28997
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
effort/medium
Medium work item – several days of effort
p1
package/tools
Related to AWS CDK Tools or CLI
toolkit/migrate
Related to cdk migrate
Describe the bug
I ran
cdk migrate
command with the CFn template below, which copied from the blog post.The command generates the typescript code below for the Lambda function.
variables
should containFUNCTION_RESPONSE
, however, it's actuallyfunctionResponse
.Expected Behavior
Lambda environment variables must contain
FUNCTION_RESPONSE
like the code below.Current Behavior
cdk migrate
command generates an incorrect template for Lambda environment variables.The function doesn't work well since it can't read environment variables.
Reproduction Steps
Run
cdk migrate --stack-name sample-stack --language typescript --from-path ./demo-template.yaml
with
demo-template.yaml
:Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.126.0 (build fb74c41)
Framework Version
No response
Node.js Version
v20.10.0
OS
macOS Sonoma 14.3 (23D56)
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: