Code Monkey home page Code Monkey logo

aws-lambda-layer-pandas's Introduction

aws-lambda-layer-pandas

BUILT THIS REPO AND THEN WHILE MAKING A PR TO BE INCLUDED ON awesome-layers repo I FOUND OUT ABOUT https://github.com/keithrozario/Klayers SO THIS IS DEPRECATED IMMEDIATELY 1 HOUR AFTER BIRTH :D

AWS Lambda layer providing pandas and numpy.

ARN of public AWS lambda layer: arn:aws:lambda:us-east-1:974668457921:layer:Pandas:1

TODO

Usage

To publish the lambda layer publicly:

docker build -t awslambdalayerpandas .
export AWS_ACCESS_KEY_ID=abc
export AWS_SECRET_ACCESS_KEY=abc
docker run --rm -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY awslambdalayerpandas

This will output something along

Uploading layer.zip to s3://aws-lambda-layer-pandas/layer.zip
upload: ./layer.zip to s3://aws-lambda-layer-pandas/layer.zip    
published python3.x layer version 2 to us-east-1
Setting public permissions for python3.x layer version 2 in us-east-1
{
    "Statement": "{
        \"Sid\":\"public\",\"Effect\":\"Allow\",\"Principal\":\"*\",\"Action\":\"lambda:GetLayerVersion\",
        \"Resource\":\"arn:aws:lambda:us-east-1:974668457921:layer:Pandas:2\"
    }",
    "RevisionId": "69301063-28b7-40e2-b0e9-9a95ab6a725f"
}
Public permissions set for python3.x Layer version 2 in region us-east-1

where the Resource is the public ARN

LICENSE

Check LICENSE file

Dev notes

Naming follows https://github.com/aws-samples/aws-lambda-layer-kubectl

Dockerfile inspired by several other github repos. Links inline in the Dockerfile itself.

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.