Coder Social home page Coder Social logo

tokenmill / clojure-graalvm-aws-lambda-template Goto Github PK

View Code? Open in Web Editor NEW
44.0 5.0 2.0 43 KB

Leiningen template for AWS Lambda custom runtime with GraalVM native image compiled Clojure projects.

License: Other

Makefile 24.53% Clojure 53.85% Dockerfile 21.09% Shell 0.53%
graalvm clojure aws-lambda lein-template aws-lambda-clojure aws-lambda-custom-runtime docker

clojure-graalvm-aws-lambda-template's Introduction

clojure-graalvm-aws-lambda-template

Clojars Project pipeline status

Leiningen template for AWS Lambda custom runtime with GraalVM native-image compiled Clojure projects.

Published in Clojars

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.clj

2 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_FOLDER

Run:

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.

Distributed under the The Apache License, Version 2.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.