GithubHelp home page GithubHelp logo

pceuropa / aws-lambda-deployment Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 10 KB

CRUD deploy to AWS Lambda in bash - simple way to deploy your code to lamba

License: MIT License

Shell 85.85% Python 14.15%
aws lambda bash python3 deployment

aws-lambda-deployment's Introduction

aws-lambda-deployment

CRUD deployment AWS Lambda in bash - fast way to deploy your code to AWS lamba. Zip reguirements package only work with virtualenv (python3)

preparation

chmod 750 deploy-aws-lambda.sh

Create

./deploy-aws-lambda.sh
Action: [C]reate/[U]pdate/[R]ead/[D]elete? [c/r/u/d] c
Start process creating lambda function...
Zip requirements packages? [y/N] y
Add files to project.zip? [y/N] y
  adding: example.py (deflated 37%)
deploy.zip? [y/N] y
FunctionName:  testDeploy
Handler:  example.handle

In file lambda_config.json you have config data

cat lambda_config.json
{
    "FunctionName": "testDeploy",
    "FunctionArn": "arn:aws:lambda:eu-west-1:89076900000:function:testDeploy",
    "Runtime": "python3.6",
    "Role": "arn:aws:iam::89076900000:role/role_name",
    "Handler": "example.handler",
    "CodeSize": 3655718,
    "Description": "Description",
    "Timeout": 3,
    "MemorySize": 128,
    "LastModified": "2018-09-21T10:02:07.829+0000",
    "CodeSha256": "-Yy2-EuALNN8fb-qUZPKI51fUobEqBBc7w",
    "Version": "$LATEST",
    "TracingConfig": {
        "Mode": "PassThrough"
    },
    "RevisionId": "11117251-111a-1111-1f1f-11e11a51ca93"
}

Read

Action: [C]reate/[U]pdate/[R]ead/[D]elete? [c/r/u/d] r
Function name:  testDeploy

Update - upload only files

Action: [C]reate/[U]pdate/[R]ead/[D]elete? [c/r/u/d] u
Start process update lambda function...
Zip requirements packages? [y/N] n
Update lamba function? [y/N] y
updating: example.py (deflated 37%)
    "FunctionName": "testDeploy",

Delete

Action: [C]reate/[U]pdate/[R]ead/[D]elete? [c/r/u/d] d
Config this project
Function name:  testDeploy

aws-lambda-deployment's People

Contributors

pceuropa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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