-
Notifications
You must be signed in to change notification settings - Fork 585
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
Missing dependency @aws-sdk/signature-v4-crt after updating to client-s3 3.33.0 #2806
Comments
Facing the same issue with serverless + webpack |
Same here. |
Hi @birtles @dianababurina-photobox @0xdeafcafe, this is indeed a regression introduced by #2796. As it mentioned in the description, we currently don't have functional test agains esbuild used by CDK Node.js function component. We will need to enforce the test. To workaround it, you can specify the package as external. For example: new NodejsFunction(this, "listObjectsFunc", {
entry: "path/to/entry",
bundling: {
externalModules: ["@aws-sdk/signature-v4-crt"]
}
}); |
An alternative workaround (if you actually don't need S3 Multi-region Access Point), is to entirely exclude For instance with serverless-bundle: custom:
bundle:
forceExclude:
- '@aws-sdk/signature-v4-crt' |
I commented on this issue believing that it had been unfixed, but this seems to be a new issue. It's becoming a bad habit that about every second release is broken. :/ |
@henhal The incompatible issue with bundler has happened a couple of times. We are working on adding the test with popular bundlers: WebPack4, WebPack5, Rollup, EsBuild to prevent this from happening again. |
Similarly in yarn, for additional keyword stuffing: ➤ YN0002: │ @aws-sdk/client-s3@npm:3.33.0 doesn't provide @aws-sdk/signature-v4-crt (p3df12), requested by @aws-sdk/middleware-sdk-s3
➤ YN0002: │ @aws-sdk/s3-request-presigner@npm:3.33.0 doesn't provide @aws-sdk/signature-v4-crt (p0c252), requested by @aws-sdk/middleware-sdk-s3 |
@AllanZhengYP I figured this should be fixed in 3.34 now, but even installing 3.35 still raises the same peer dependency warnings. ➤ YN0000: ┌ Resolution step
Resolution step
00:05
➤ YN0002: │ @aws-sdk/client-s3@npm:3.35.0 doesn't provide @aws-sdk/signature-v4-crt (p25b82), requested by @aws-sdk/middleware-sdk-s3
➤ YN0002: │ @aws-sdk/s3-request-presigner@npm:3.35.0 doesn't provide @aws-sdk/signature-v4-crt (p225e9), requested by @aws-sdk/middleware-sdk-s3
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 4s 521ms |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
After updating to
@aws-sdk/client-s3
3.33.0 from 3.32.0 I get the following error when building lambdas usingNodejsFunction
as part of a CDK project:Your environment
SDK version number
@aws-sdk/client-s3@3.33.0
Is the issue in the browser/Node.js/ReactNative?
Node.js
Details of the browser/Node.js/ReactNative version
v14.17.5
Additional context
Presumably a regression from #2796.
Reverting to 3.32.0 fixes the issue.
cc @AllanZhengYP
The text was updated successfully, but these errors were encountered: