Open ammarkarachi opened 4 years ago
Would be great if the CLI also added the appropriate bash script and docker file with the precreated image to the solution in addition to just the swift file to get started. I have these files for reference if need be.
We should also make sure we handle dependencies like existence of docker & swift etc. These dependencies should be documented here: https://docs.amplify.aws/cli/function#supported-lambda-runtimes
Would love to see this happen. 💯
Can we focus on making amplify usable instead of adding more runtimes and options? Very basic things are extremely broken like lambda layers, or codegen for the graphql API. Every time I see an RFC for a large new thing like this I laugh and feel like a dupe for using amplify. My team wastes so much time just trying to get the basics working, please focus on the basics!
Please, add this functionality. This could be very helpful for lots of iOS developers, helping them to familiarize with AWS Lambda.
This would be a great add, particularly with the recent launch of the AWS SDK for Swift.
A big part of this is implemented in https://github.com/aws-amplify/amplify-cli/pull/5280 Why it has been closed like that? Any further details? As many says, Swift integration to Amplify would be extremely powerful.
Problem:
iOS developers don’t have a native development experience for functions today. While we serve Android customers (Java), Web customers (JS) and a variety of other customers (Python, Go, .Net Core), iOS developers have yet the ability to author functions in a language that they are most immediately familiar with.
Proposed solution:
AWS Lambda recently added support for the Swift runtime (5.2). To enable a great experience for iOS developers, the Amplify CLI’s
add function
workflow will allow iOS developers to pick Swift as their preferred function runtime.Developer experience:
amplify add function
Customers can choose the “Swift” runtime during
amplify add function
. Amplify CLI will create a “Hello World” project for the customer and in its final step, open the .swift file let the customer edit the function.amplify mock function <function-name>
Customer can mock Swift functions locally when the Swift runtime is available.
Useful resources