Lambda LayerVersion construct requiring S3 Location #27695
Unanswered
cullancarey
asked this question in
Q&A
Replies: 1 comment
-
Any updates on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I am trying to build a lambda layer using the fromAssetImage method which should build my lambda layer image based on the Dockerfile i have set in the directory I pass to the method. However, it keeps throwing the error
Error: Code must define an S3 location
. Which is very weird to me because I do not believe I should need to provide an S3 location. The documentation mentions nothing of this and I also cannot find any other examples of this error happening on google. My layer code is below. The error is referencing this file LayerVersionnode_modules/aws-cdk-lib/aws-lambda/lib/layers.js:1:2403
. That code is below. Any idea what could be going on here?Lambda Layer Version
layers.js:
Dockerfile at path src/assets/docker-containers/lambda-layer-container/:
Beta Was this translation helpful? Give feedback.
All reactions