You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an issue when using Deno Lambda together with npm: URLs. It seems the npm dependencies are being re-downloaded on executing the function even though they have already been cached during the Docker build.
If I change dependencies to use the aws_api module from deno.land/x I don't get this issue at all (although I do get the same warning about being unable to import .deno_dir)
The text was updated successfully, but these errors were encountered:
GJZwiers
changed the title
Deno Lambda re-downloading npm URLs despite caching in dockerfile
npm URLs are re-downloaded despite caching in dockerfile
Dec 10, 2022
I am having an issue when using Deno Lambda together with
npm:
URLs. It seems the npm dependencies are being re-downloaded on executing the function even though they have already been cached during the Docker build.src/listFunctions.ts
:src/Dockerfile
:The lambda is deployed from an AWS CDK project inside an
infra
folder using this stack:During the docker build in my pipeline I can see the npm dependencies are downloaded:
But when invoking the lambda it times out and I can see in the logs that the npm dependencies are being downloaded again:
warn: unable to import '.deno_dir/' as DENO_DIR
Download https://registry.npmjs.org/@aws-sdk/client-lambda
Download https://registry.npmjs.org/@aws-crypto/sha256-browser
Download https://registry.npmjs.org/@aws-crypto/sha256-js
Download https://registry.npmjs.org/@aws-sdk/client-sts
Download https://registry.npmjs.org/@aws-sdk/config-resolver
Download https://registry.npmjs.org/@aws-sdk/credential-provider-node
Download https://registry.npmjs.org/@aws-sdk/fetch-http-handler
Download https://registry.npmjs.org/@aws-sdk/hash-node
Download https://registry.npmjs.org/@aws-sdk/invalid-dependency
Download https://registry.npmjs.org/@aws-sdk/middleware-content-length
Download https://registry.npmjs.org/@aws-sdk/middleware-endpoint
Download https://registry.npmjs.org/@aws-sdk/middleware-host-header
Download https://registry.npmjs.org/@aws-sdk/middleware-logger
Download https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection
If I change dependencies to use the aws_api module from deno.land/x I don't get this issue at all (although I do get the same warning about being unable to import .deno_dir)
The text was updated successfully, but these errors were encountered: