GithubHelp home page GithubHelp logo

ruzin / terraform_aws_lambda_python Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 34.0 8 KB

A module that allows you to cleanly package python source code and dependencies and deploy it as a AWS Lambda function

License: MIT License

HCL 75.69% Python 3.74% Shell 20.57%

terraform_aws_lambda_python's Introduction

Purpose

A module that allows you to cleanly package your python source code and dependencies into a zipped lambda function.

Pre-requisites

Inputs

Name Description Type Default Required
description Description of what your Lambda Function does. string n/a yes
function_name A unique name for your Lambda Function string n/a yes
handler_name The function entrypoint in your code. string n/a yes
role_arn ARN of IAM role to be attached to Lambda Function. string n/a yes
source_code_path Path to the source file or directory containing your Lambda source code & requirements.txt if applicable string n/a yes
environment Environment configuration for the Lambda function map {} no
memory_size Amount of memory in MB your Lambda Function can use at runtime. string "128" no
output_path Path to the function's deployment package within local filesystem. eg: /path/to/lambda.zip string "lambda.zip" no
runtime runtime string "python2.7" no
timeout The amount of time your Lambda Function has to run in seconds. Defaults to 5 minutes string "300" no

Outputs

Name Description
arn AWS arn of lambda function
function_name Name of lambda function

terraform_aws_lambda_python's People

Contributors

rs-garrick avatar ruzin avatar ruzins13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terraform_aws_lambda_python's Issues

Question on private python modules

I am familiar with serverless and it took quite some hacking to get such modules to be available to my python lambda functinos even with putting them in lambda layers. It seemed the build/deploy time and lambda run time both needed access (as far as I can tell).

I am wondering what terraform_aws_lambda_python does to make this easier. I sort of dream of just using an exsiting cleanly created virtualenv at build/deploy time to incorporate these private modules cleanly. Or perhaps the virtualenv you have has some hooks or access for doing such.

How would you personally go about it given this tooling of yours?

Project abandoned?

Hi,

Testing to see if this project is abandoned. There are some changes that would be greatly appreciated via #2

Pipenv local editable packages won't deploy

I'm using a pipfile with a section like this

[packages.common]
editable = true
path = "./../common"

Gives the error

STDERR: ERROR: Invalid requirement: './../common' (from line 1 of /var/task/requirements.txt)
Hint: It looks like a path. File './../common' does not exist.

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.