(custom-resources): Asset for Backend Lambda Function Empty #27950
Labels
@aws-cdk/custom-resources
Related to AWS CDK Custom Resources
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Deploying stacks that create
software.amazon.awscdk.customresources.AwsCustomResource
fail because the Backend Lambda cannot be created with an empty handler zip file.Expected Behavior
The
software.amazon.awscdk.customresources.AwsCustomResource
to create and deploy oncdk deploy
Current Behavior
The asset containing the handler for the lambda function backing the
software.amazon.awscdk.customresources.AwsCustomResource
is a zip file with an emptyindex.js
, blocking deployment as Lambda function cannot be created with empty zip:Reproduction Steps
Create a stack that creates some
software.amazon.awscdk.customresources.AwsCustomResource
and attempt to deploy (or just runcdk synth
and see if the asset's (incdk.out
)index.js
is empty or not)E.g.:
Possible Solution
No response
Additional Information/Context
Testing in cdk
v2.106.1
is blocked by (core): App Constructor Prevents Cdk Synth #27949Problem occurs in cdk
v2.106.0
Works fine in cdk
v2.105.0
CDK CLI Version
2.106.0
Framework Version
No response
Node.js Version
18.18.2
OS
archlinux 6.6.1-arch1-1
Language
Java
Language Version
Java ( Corretto-17.0.9.8.1 (build 17.0.9+8-LTS) )
Other information
No response
The text was updated successfully, but these errors were encountered: