-
Notifications
You must be signed in to change notification settings - Fork 73
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
RFC: Enable Python, Go, and others with defineFunction
#1543
Comments
This looks great! Exactly what I was hoping for (similar way of defining the function itself) |
Hello @josefaidt. Awesome, it would be great! Using this
It should be usable in
|
This looks like a good proposal! |
I just created golang function for gen 2, but I did like this. It was easier than proposal, runtime default is still NODEJS 18 (NodeJS_18), working example is like this:
I edited runtime parameters options to:
It can be usable in data:
Golang function creating and custom handler with data query is successful, but there is important issue on python function runtimes, on cdk it's saying docker will necessary on python runtime bundling, for this solution we have install docker for using python lambda functions, check it out here What are you thinking about this solution? I can raise a PR for this now. @josefaidt @LukaASoban @brandoncroberts |
I have a use case with Python runtime! |
Please leave 👍 to my PR about this #1602. You can found information about python functions. |
Hey folks 👋 we're looking to add support for "custom" runtimes with
defineFunction
! This is a follow-up to the following issues, and serves as a request for feedback on how we're thinking of addressing the feature requestsWe are looking to bridge the gap between
defineFunction
and defining functions using CDK, which then require sideloading to Amplify resources with CDK (e.g. adding a Python function as a trigger for Storage's underlying S3 bucket). To achieve this, we're thinking about an escape hatch to wrap initialized CDK constructs withdefineFunction
:Many of the features of
defineFunction
today are specific to the TypeScript developer experience such as secrets, automatic secret resolution, typed environment variables, and sensible default configuration for bundling. Using this escape hatch would opt out of consuming these features.However, this gives you a way to use Python, Go, or other runtimes with your Functions, and attach to other Amplify resources without CDK. This enables use cases such as:
Let us know what you think!
The text was updated successfully, but these errors were encountered: