Giter VIP home page Giter VIP logo

jlambda's Introduction

jlambda

A simple CLI for authoring AWS Lambdas in java

JLambda CodeQL

What is jlambda

jlambda is a simple command line tool that lets you generate java project with all AWS lambda dependencies built-in. One can simply add business logic to the generated project and use jlambda once again to build a deployment package(.zip) and publish it to AWS . For now jlambda makes use of the AWSs' DefaultCredentialResolver to obtain credentials to publish the lambda

Why should I use jlambda

Java developers shy away from authoring AWS Lambda functions in Java owing to the inherent complexity in setting up the project and publishing it. Jlambda hopes to alleviate some or most of that pain. Jlambda is written in java for Java developers.

How To

Usage: jlambda [-h] (-g=<path to generate lambda> | -b=<path to build package 
               to> | [-p=<publish> [-e=<env>]])
  -b, --build=<path to build package to>

  -e, --env=<env>
  -g, --generate=<path to generate lambda>

  -h, --help
  -p, --publish=<publish>

Jlambda provides three commands

  • ./jlambda -g /your/path This will generate a simple gradle java project with AWS Lambda dependencies pre-added. All you have to do is import the project .The Main class(AWS Lambda Handler) is by default at com.lambda.basic.Handler.It also has a default.properties file that has all necessary lambda configuration.
    • You can create your own <env>.properties to hold account specific configuration All that is left is to add logic to your function
  • ./jlambda -b /your/path This will build the java project at the specified location into a deployment package(.zip).
  • ./jlambda -p /your/path will build and publish the deployment package to AWS using the config given in default.properties . Furthermore , you con use ./jlambda -p /your/path -e <env> to deploy using environment specific configuration.

Download

You can download the executable from Releases

P.S. Right now this is tested only in linux

jlambda's People

Contributors

hemantgs avatar

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.