Skip to content
This repository has been archived by the owner on Apr 11, 2021. It is now read-only.

A set of examples running in Swift on AWS Lambda custom runtime.

License

Notifications You must be signed in to change notification settings

wqfan/SwiftOnLambda-Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Swift on AWS Lambda - Function examples

⚠️ This has been archived in favor of the community support: https://github.com/swift-server/swift-aws-lambda-runtime

A set of examples running in Swift on AWS Lambda custom runtime.

Build your function

Note: to build your function, you need to have docker installed on your machine and have the path to SwiftOnLambda-Functions configured in docker's "Preferences... -> File Sharing".

After cloning the repository, change your current directory to the example function folder:

# build the HelloWorld example
cd SwiftOnLambda-Functions/HelloWorld

Then run:

docker run \
    --dns 8.8.8.8 \
    --rm \
    --volume $(pwd):/Function \
    --workdir /Function \
    swift:5.0.1 \
    swift build -c release

Finally pack your function following the compilation:

zip --junk-paths function.zip .build/x86_64-unknown-linux/release/HelloWorld

Note that when you upload the function, the function handler is HelloWorld in this case.

About

A set of examples running in Swift on AWS Lambda custom runtime.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages