We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
When using NodejsFunction along with a CDK pipeline, the lambda fn's code is being packaged with an empty zip and is being uploaded.
A non-empty ZIP is uploaded
An empty ZIP is uploaded
Replication code - https://github.com/mrlikl/node-js-lambda
Quick update on this, while looking a similar issue where tarball was not being uploaded, came across this GH issue.
Every stage of the pipeline has a separate folder inside cdk.out however the assets are present at the root of cdk.out.
No response
TypeScript
The text was updated successfully, but these errors were encountered:
Is this related - cdklabs/cdk-stacksets#258 ?
Sorry, something went wrong.
@rix0rrr have you tried
import * as path from 'path'
instead of yours here https://github.com/mrlikl/node-js-lambda/blob/6953e5c32af4d88744eb8206b0f4d2d1cc0049af/lib/lambda-stack.ts#L5
I have successfully used CDK pipelines with NodeJS Functions in my previous projects.
Not sure if it is related, but I've added comment on some more findings and updated the replication code, if that can help.
No branches or pull requests
Describe the bug
When using NodejsFunction along with a CDK pipeline, the lambda fn's code is being packaged with an empty zip and is being uploaded.
Expected Behavior
A non-empty ZIP is uploaded
Current Behavior
An empty ZIP is uploaded
Reproduction Steps
Replication code - https://github.com/mrlikl/node-js-lambda
Possible Solution
Quick update on this, while looking a similar issue where tarball was not being uploaded, came across this GH issue.
Every stage of the pipeline has a separate folder inside cdk.out however the assets are present at the root of cdk.out.
Additional Information/Context
No response
CDK CLI Version
Framework Version
No response
Node.js Version
OS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: