Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokenmill/clojure-graalvm-aws-lambda-template
Leiningen template for AWS Lambda custom runtime with GraalVM native image compiled Clojure projects.
https://github.com/tokenmill/clojure-graalvm-aws-lambda-template
aws-lambda aws-lambda-clojure aws-lambda-custom-runtime clojure docker graalvm lein-template
Last synced: 4 days ago
JSON representation
Leiningen template for AWS Lambda custom runtime with GraalVM native image compiled Clojure projects.
- Host: GitHub
- URL: https://github.com/tokenmill/clojure-graalvm-aws-lambda-template
- Owner: tokenmill
- License: other
- Created: 2019-05-24T13:27:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-05T08:13:19.000Z (about 4 years ago)
- Last Synced: 2024-10-28T13:08:37.405Z (16 days ago)
- Topics: aws-lambda, aws-lambda-clojure, aws-lambda-custom-runtime, clojure, docker, graalvm, lein-template
- Language: Clojure
- Homepage:
- Size: 42 KB
- Stars: 45
- Watchers: 5
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# clojure-graalvm-aws-lambda-template
[![Clojars Project](https://img.shields.io/clojars/v/clojure-graalvm-aws-lambda/lein-template.svg)](https://clojars.org/clojure-graalvm-aws-lambda/lein-template)
[![pipeline status](https://gitlab.com/Jocas/clojure-graalvm-aws-lambda-template/badges/master/pipeline.svg)](https://gitlab.com/Jocas/clojure-graalvm-aws-lambda-template/commits/master)Leiningen template for AWS Lambda custom runtime with GraalVM `native-image` compiled Clojure projects.
Published in [Clojars](https://clojars.org/clojure-graalvm-aws-lambda/lein-template)
## Usage
Run:
```
lein new clojure-graalvm-aws-lambda your-lambda
```This results in a project structure like this:
```
$ tree -a your-lambda
your-lambda
├── bootstrap
├── deps.edn
├── Dockerfile
├── .gitignore
├── .gitlab-ci.yml
├── lambda.yml
├── Makefile
├── README.md
└── src
└── lambda
└── core.clj2 directories, 9 files
```
Then
```
cd your-lambda
```Set these environment variables:
- MY_AWS_DEFAULT_REGION
- MY_AWS_ACCESS_KEY_ID
- MY_AWS_SECRET_ACCESS_KEY
- MY_S3_BUCKET
- MY_S3_FOLDERRun:
```
make deploy-lambda-via-container
```Lambda is ready to be used. Go to your AWS Console to work with the new stack named `lambda-custom-runtime-your-lambda`.
## License
Copyright © 2019 [TokenMill UAB](http://www.tokenmill.lt).
Distributed under the The Apache License, Version 2.0.