AWS Lambda Layer Download.
Project description
layerd
Mount and Inspect Lambda Layers on the fly.
Lambda Layers created by a third party?
Need to check what was uploaded?
Use
layerd
.
Table of Contents
Inspiration
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
Very Simply: 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-cisco-otel-lambda-1/
Boom. You've mounted the Layer locally.
Configuration
Environment Variables are used to handle Configurations.
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.10.16.20.tar.gz
.
File metadata
- Download URL: layerd-2022.8.10.16.20.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3c69267806b071f5430d0ae29899364b569633b9bbbb59800f72ee1bd3f6454 |
|
MD5 | 37a70d5b7eeedbf773726d5814952039 |
|
BLAKE2b-256 | 89f7b630b966ae2c903a677ca4c8fd52c8ea51c00714b3c6d4b2a3246f0a31f2 |