-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify Function for Go: Runtime error #13658
Comments
I change amplify/function/function_name/amplify.state
amplify/function/function_name/function_name-cloudformation-template.json
then:
push successfully. but then lambda started get the same err. |
You have to build your code with named object you can run |
Hey @MarlonJD 👋 thanks for raising this and taking the time to file a PR! I'll mark this as a bug to address the behavior of creating and distributing Go-based Functions 🙂 |
Yep I've got about 10 go functions in my amplify project and I'm trying to update to |
I tried these steps and works, did you tried renamed main file and upload it ? These are the steps:
|
I'm looking forward to be fixed this issue 😄 This is my temporal workaround. Run below on background (or on another terminal) of
|
I closed my PR (#13659) the official team prefers to do it themselves, This issue has resolved after released version (v12.11.0) with merged PR (#13671 ) |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
curl
If applicable, what version of Node.js are you using?
v18.15.0
Amplify CLI Version
12.10.1
What operating system are you using?
MacOS 14.3.1 (23D60)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No Manuel changes made
Describe the bug
I create new function with
amplify add function
selectGo
then madeamplify push
.Unexpected error occurred:
I replaced all
go1.x
toprovided.al2023
.These are on the
amplify/function/*function_name*/amplify.state
andamplify/function/*function_name*/*function_name*-cloudformation-template.json
I could push successfully with
amplify push
but then lambda started to gave error,Expected behavior
I solved this issue like this, build function with
GOOS=linux GOARCH=amd64 go build -tags lambda.norpc -o bootstrap main.go
this will compiled codes to namedbootstrap
old amplify push build mademain
for names so we have to change build go to this. If we can createbootstrap
file for amd64 it will solve the error.Reproduction steps
amplify add function
Go
amplify push
Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: