question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sam build Error: CustomMakeBuilder:Resolver - Path resolution for runtime: provided of binary: make was not successful

See original GitHub issue

Description:

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)

  1. OS: ubuntu
  2. sam --version:SAM CLI, version 1.21.1
  3. AWS region: N/A

Add --debug flag to command you are running

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
aprilmintacpinedacommented, Mar 31, 2021

Fixed it on the container.

1reaction
LuizPelegrinicommented, Feb 9, 2022

I used the command in windows

sam build --use-container

and it worked, it took quite some time to build in my machine though

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found