Package: lambda-layer
Create AWS Lambda layers for your AWS Lambda python functions!What are AWS Lambda Layers?Good question. Let’s ask theAWS
documentation:You can configure your Lambda function to pull in additional code and
content in the form of layers. A layer is a ZIP archive that contains
libraries, a custom runtime, or other dependencies. With layers, you can
use libraries in your function without needing to include them in your
deployment package.What islambda-layer?lambda-layeris a command-line application you can use to automate
the creation of layers for your python Lambda functions.ConsiderationsThank you for checking out this project. Please be aware that it’s still
early days and, at present, the application uses thebashshell to
do its work. I am hoping to add support for Windows in the future.InstallationYou can installlamba-layerusingpip.pipinstalllambda-layerRunning the CLIlambda-layerfeatures a command-line interface (CLI) based onClick. You can use the--helpflag
to get context help.Getting Helplambda-layer--helpUsage:lambda-layer[OPTIONS]COMMAND[ARGS]...Runlambda-layer.Options:-v,--verboseEnableverboseoutput.--helpShowthismessageandexit.Commands:packageCreateconfiguredpackages.versionGetthelibraryversion.Creating PackagesMost of the time you’ll probably want to use thepackagesubcommand.lambda-layerpackage--helpUsage:lambda-layerpackage[OPTIONS]Createconfiguredpackages.Options:-c,--configPATH--helpShowthismessageandexit.Package Configurationlambda-layeruses configuration files written inTOMLthat describe the Lambda
Layer packages you want to create.Configuration FilesBy default, when you runlambda-layerthe application will look for
a file called.lambda-layer.tomlin the current working directory.LayersA single configuration file can produce many Lambda layer packages. Each
layer that you want to build within a single run should be defined
within an array called “layers”.nameThis is the name of the layer. It will be part of the final package
archive’s name.versionThis is the layer package version. it will be part of the final package
archive’s name.packagesList the python packages you want to include in your layer package just
as you would in arequirements<https://pip.pypa.io/en/stable/user_guide/#requirements-files>_
file.Example[[layers]]name="neural-networking"version="0.0.1"packages=['keras==2.3.1','requests'][[layers]]name="number-cruncher"version="1.1.0"packages=['matplotlib','numpy']Project Featureslambda_layera starterClickcommand-line
applicationautomated unit tests you can run withpytestaSphinxdocumentation
projectGetting StartedThe project’s documentation contains a section to help youget
startedas a developer or user of the library.Development PrerequisitesIf you’re going to be working in the code (rather than just using the
library), you’ll want a few utilities.GNU MakePandocResourcesBelow are some handy resource links.Project DocumentationClickis a Python package for
creating beautiful command line interfaces in a composable way with
as little code as necessary.Sphinxis a tool that
makes it easy to create intelligent and beautiful documentation,
written by Geog Brandl and licnsed under the BSD license.pytesthelps you write
better programs.GNU Makeis a tool which
controls the generation of executables and other non-source files of
a program from the program’s source files.AuthorsPat Daburu-Initial work-githubSee also the list ofcontributorswho participated in this project.LicenseMIT LicenseCopyright (c) patdaburuPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.