sam build Error: CustomMakeBuilder:Resolver - Path resolution for runtime: provided of binary: make was not successful
See original GitHub issueDescription:
I’m building my app with SemaphoreCI, using this docker container that I created https://hub.docker.com/repository/docker/aprilmintacpineda/aws-sam-cli-deploy-nodejs this docker container worked perfectly before, but that was before I created my own Makefile
, when I started using Makefile
, sam build
started to give me this error: https://hub.docker.com/repository/docker/aprilmintacpineda/aws-sam-cli-deploy-nodejs
, but I have tried building this with GitHub actions and was able to successfully build it, I’m guessing it has to do with the docker container, possibly a missing component.
Steps to reproduce:
Use my Docker file to build AWS Sam with custom Makefile that looks like this:
.PHONY: build-fn1 build-fn2 build-fn3
build-fn1:
cp fn1.js "${ARTIFACTS_DIR}/fn1.js"
build-fn2:
cp fn2.js "${ARTIFACTS_DIR}/fn2.js"
build-fn3:
cp fn3.js "${ARTIFACTS_DIR}/fn3.js"
build-my-layer:
mkdir -p "$(ARTIFACTS_DIR)/nodejs"
cp -r . "$(ARTIFACTS_DIR)/nodejs/"
yarn --production --prefer-offline --cwd "$(ARTIFACTS_DIR)/nodejs/"
Observed result:
Written above.
Expected result:
Not sure.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: ubuntu
sam --version
:SAM CLI, version 1.21.1- AWS region: N/A
Add --debug flag to command you are running
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
AWS SAM Lambda append runtime layer without building ...
... Build Failed Error: CustomMakeBuilder:Resolver - Path resolution for runtime: provided of binary: make was not successful.
Read more >sam build - AWS Serverless Application Model
Build an AWS SAM application using the sam build command from the AWS SAM CLI. ... a .zip file archive, you must specify...
Read more >Building custom runtimes - Amazon Serverless Application ...
The following Amazon SAM template declares a function that uses a custom runtime for a Lambda function written in Rust, and instructs sam...
Read more >Building an HTTP API with AWS Serverless Application Model ...
In this article, we cover what AWS SAM is, how to get started and how it helps deploy serverless applications and Lambda functions...
Read more >Using AWS SAM default template in PyCharm: Python Version ...
If you are using Pycharm default template to create your AWS serverless ... Build Failed Error: PythonPipBuilder:Validation - Binary ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed it on the container.
I used the command in windows
and it worked, it took quite some time to build in my machine though