-
Notifications
You must be signed in to change notification settings - Fork 4k
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-nodejs: missing aws-sdk-v3 libs at runtime #23873
Comments
I also have issues with I think it was introduced with |
@dambaron @mattiamatrix To confirm, you are using the NodejsFunction construct to create AWS Lambda Functions with the The You can set the |
Yep, looks like it works again with const bundling: BundlingOptions = {
minify: true,
sourceMap: true,
externalModules: [],
}; Feeling like a breaking change. Not impressed with this change. |
I can understand where you are coming from. From our perspective I'll take your feedback on for future changes. |
Thank you @mrgrain. But I am still very confused by the behaviour here. Looking at @peterwoodworth changes to the tags, it seems like something needs to be done. Correct? |
Hey @mattiamatrix Sorry this behavior isn't clear yet. Does the docstring help at all?
Another way of saying this could be: "By default We are very open to improving the docs in this regard. Regarding the tags Peter added - this is on me. I meant to close the issue after a bit and forgot to do this. I have done this now. |
|
Describe the bug
After bumping aws-cdk & aws-cdk-lib from
2.51.1
to2.62.1
multiple lambdas are failing while performing DynamoDB calls.The log messages look like:
All lambda perform similar DynamoDB commands like this :
It seems like that the ReturnValue enum is missing from the package asset.
It is confirmed by the fact that the package asset went from 900ko to 300ko and the announcement that the aws-sdk-v3 is now included within the NodeJs runtime.
Knowing that, how should the lambdas be packages to avoid this behavior ?
Expected Behavior
The aws-sdk-v3 libs should be bundled in the lambda asset and / or be available at runtime.
Current Behavior
The aws-sdk-v3 libs are not available at runtime
Reproduction Steps
Build a Node.js lambda with the 18.x runtime and perform a simple DynamoDB update
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.62.1
Framework Version
No response
Node.js Version
v18.12.1
OS
N/A
Language
Typescript
Language Version
4.9.4
Other information
No response
The text was updated successfully, but these errors were encountered: