Download AWS Lambda Layers.
Project description
layerd
Mount and Inspect Lambda Layers in seconds.
Lambda Layers created by a third party?
Want the contents locally?
Use
layerd
.
Table of Contents
Installation
$ pip3 install layerd
Usage
CLI
The layerd
script is automatically added to your OS's Path.
Call it with an ARN of a public lambda layer to mount the layer.
$ layerd <ARN>
Example:
$ layerd arn:aws:lambda:us-east-1:ACC:layer:LAYER-NAME:221
Layer: LAYER-NAME
Region: us-east-1
V: 221
Created: ./LAYER-NAME-221/
And pulled, unzipped, and mounted is the contents of the Lambda Layer.
$ tree
.
└── LAYER-NAME-221/
└── ...
Python Inline
The layerd
module has a layerd(arn: str)
function to mount a Lambda Layer.
>>> from layerd import layerd
>>> layerd('arn:aws:lambda:us-east-1:ACC:layer:LAYER-NAME:335')
Layer: LAYER-NAME
Region: us-east-1
V: 335
Created: ./LAYER-NAME-335/
Boom. You've mounted the Layer locally.
License
layerd
is licensed under the MIT License. See LICENSE for more.
Contributions
Pull Requests for modifications are always welcome. Forks are preferred over Branches.
Want to become a maintainer? Submit 5 PRs, then we'll talk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file layerd-2022.8.11.11.4.tar.gz
.
File metadata
- Download URL: layerd-2022.8.11.11.4.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 690bc1315e3b463bb3ca7fddf7b62003363d8180bb90a9de6e09cd5435fc0fdc |
|
MD5 | 485e513bd94f022b2503dcf4b528a6dc |
|
BLAKE2b-256 | e8468955693eb974b5c46bc591989ce9d188d67e2d0d4e2f3c023c106283413d |