Closed jjbuck closed 5 years ago
@jjbuck It looks like your CodeUri
is a jar? It should be the directory of your source not the compiled artifact.
Closing due to no response. Feel free to re-open.
@jjbuck It looks like your
CodeUri
is a jar? It should be the directory of your source not the compiled artifact.
It's very easy to miss this in the docs. It makes me wonder if it's correct for CodeUri to be reused for two slightly different meanings. A downside is that I can't use the same sam template for multiple build methods. If I want to build with sam, I need to reference the source files; if I want to build outside of sam, I need to change my template to reference the compiled artifact.
Description
Running
sam build
yields a "No such file or directory" error.Steps to reproduce
Create new AWS serverless project from IntelliJ, and either a) deploy from IntelliJ or b) run the sam build command directly at the cli. This is essentially just following the example shown in https://aws.amazon.com/blogs/developer/aws-toolkit-for-intellij-now-generally-available/.
/usr/local/bin/sam build --template /Users/<user>/code/GetImageSize/template.yaml --build-dir /Users/<user>/code/GetImageSize/.aws-sam/build
Observed result
Expected result
Expected sam build to create an artifact for Lambda without error.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.18.0