mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-05-03 07:22:27 +00:00
e1ee4ea0ddff4e1252367cafa85fa0a7fd770ee5
SwiftAWSLambdaRuntimeSample
This repository is a deployable example demonstrating how to package and deploy a Swift based Lambda to AWS.
Steps to deploy this sample to ASW:
-
Login to AWS Console and create an AWS Lambda with the following settings:
- Runtime: Custom runtime
- Handler: Can be any string, does not matter in this case
-
Build, package and deploy the Lambda
./scripts/deploy.shThis script assumes you have AWS CLI installed and credentials setup in
~/.aws/credentials -
Test it with the following example payloads:
{ "requestId": "1", "error": "none" }or
{ "requestId": "2", "error": "managed" }or
{ "requestId": "3", "error": "boom" }or
{ "requestId": "4", "error": "fatal" }
Description
Languages
Cython
55%
Swift
40.8%
Shell
4.1%
Makefile
0.1%