https://github.com/polpielladev/swift-compiler-lambda
🔨 An AWS Lambda that runs Swift code passed in as a string
https://github.com/polpielladev/swift-compiler-lambda
Last synced: 28 days ago
JSON representation
🔨 An AWS Lambda that runs Swift code passed in as a string
- Host: GitHub
- URL: https://github.com/polpielladev/swift-compiler-lambda
- Owner: polpielladev
- Created: 2022-01-07T11:47:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T11:24:24.000Z (about 3 years ago)
- Last Synced: 2024-10-14T15:01:08.261Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CompilerLambda
This project builds and deploys a Lambda function that runs Swift code. This is similar to using the the Swift REPL locally, but opens up the possibility of running this in the cloud.
Since the code needs access to a Swift toolchain, a custom docker image is built and deployed to AWS ECR. The Lambda then can be configured to using the latest version of the deployed image.
## Build and deploy
```bash
docker build . -t compiler-lambdadocker tag compiler-lambda:latest .dkr.ecr..amazonaws.com/compiler-lambda:latest
docker push .dkr.ecr..amazonaws.com/compiler-lambda
```