GithubHelp home page GithubHelp logo

ericmaustin / aws-lambda-layer-builder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/aws-lambda-layer-builder

0.0 0.0 0.0 10 KB

Script for quickly creating AWS Lambda Layers

License: MIT No Attribution

Shell 100.00%

aws-lambda-layer-builder's Introduction

AWS Lambda Layer Builder

If you've ever needed to build a Lambda layer quickly and easily, this tool is for you.

Prerequisites

Installation

Copy the make-layer file to a location on your path, e.g. cp make-layer /usr/local/bin/.

Download and install with a single command by copying and pasting the following into a terminal:

INSTALL_LOC=/usr/local/bin/make-layer; curl https://raw.githubusercontent.com/aws-samples/aws-lambda-layer-builder/main/make-layer > $INSTALL_LOC; chmod +x $INSTALL_LOC

Usage

This tool can either take a list of packages to include in the layer, or a package manifest file valid for the specified runtime. It assumes the AWS CLI is already properly configured.

Run make-layer without parameters for full usage instructions.

Manifest File

make-layer NAME RUNTIME MANIFEST
  • NAME is a valid Lambda layer name (letters, numbers, hyphens, and underscores)
  • RUNTIME is a valid Lambda runtime identifier (e.g. nodejs14.x, python3.8)
  • MANIFEST is the full path and filename of a valid manifest file. The following types are supported:

If the manifest file is not found the parameters are presumed to be explicit package names.

Explicit List

make-layer NAME RUNTIME PACKAGE_1 [PACKAGE_2] ...
  • PACKAGE_1, PACKAGE_2, etc. are the packages to be installed.

To-Do

  • Add parameter for AWS profile to use (currently uses default, or honors AWS_PROFILE)
  • Add support for additional runtimes

Contributing

Pull requests are welcomed. Please review the Contributing Guidelines and the Code of Conduct.

Security

See CONTRIBUTING for more information.

Authors

License

This project is licensed under the MIT-0 License. See the LICENSE file for details.

aws-lambda-layer-builder's People

Contributors

lordjabez avatar chriscoombs avatar drewmullen 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.