Hi All, I have been trying to deploy my lambda on...
# golang
Hi All, I have been trying to deploy my lambda on the new provided.al2 runtime for Go. I package my code using
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -tags lambda.norpc -o build/bootstrap
And then I zip it using Pulumi's
Copy code
Code: pulumi.NewAssetArchive(map[string]interface{}{
			"bootstrap": pulumi.NewFileAsset("../onboarding/cmd/onboarding/build/bootstrap"),
			"Makefile":  pulumi.NewFileAsset("../onboarding/cmd/onboarding/build/Makefile"),
And my Makefile contains
Copy code
	cp ./bootstrap $(ARTIFACTS_DIR)/.
But for some reason it's like my Makefile doesn't execute then the bootstrap file stays in some root folder. Any ideas here? Thank you
My issue was that my main file
line at the top of the file said something besides main. Even though my go.mod can have a different package line as main in order to make my internal dependencies work.