-
Notifications
You must be signed in to change notification settings - Fork 74
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
Detailed docs for: Go, Python Runtimes functions, how can we create and assign these functions #1486
Comments
Hey @MarlonJD 👋 thanks for taking the time to file this, and thank you for stopping by office hours! It was great to have you there! Marking as a feature request |
@josefaidt Hey there! Thank you for quick response. Office hours are great, likewise. I looking forward for this issue to migration. |
Just commenting on this thread as this is also something that I would highly appreciate :) |
I just successfully created go runtime lamda function but I couldn't assign lambda resolver-function to appsync/graphql query or override to existing typescript function. Here is the how I could created golang function:
Edit: I think I found possible way, I don't sure but right place is DataSource I think, if I change AppSync's invoke function of related custom query name, there should be a datasource as lambda, if we create any typeScript function to create custom query, then change lambda function arn to golang lambda function's arn. It can be works, I'm trying to do this somehow in Anyone can help how can I use this function in custom graphql query? |
Hey @MarlonJD and @LukaASoban 👋 we've published an RFC #1543 for supporting other runtimes! Let us know what you think! |
Is there any update about this issue? |
Environment information
Description
On AWS Amplify Gen 2 document, it says there is only nodejs runtimes for
defineFunction
SourceOn the Gen 1 vs. Gen 2 feature matrix. It says, Function runtime: .NET 6, Go, Java, Javascript and Python is available with
Yes with CDK
.How can we create for example Go Lambda function and use as a custom GraphQL query in gen 2. There was detailed document on gen 1 for custom query with lambda function.
We were creating go function with
amplify add function
, then just assigning this function name with this:Set up custom queries and mutations (Gen 1)
Now, how can we do this? Also we need to get current user's information with body, can we do this in gen 2 ? For example I'm using user's cognitoId to get user's detail and get permissions about custom job.
Which options we have? How can we connect our Golang function to custom query, can I get user's cognate id with this query?
The text was updated successfully, but these errors were encountered: