Skip to main content

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

  1. Installation
  2. Usage
  3. Configuration

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

layerd-2022.8.10.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file layerd-2022.8.10.tar.gz.

File metadata

  • Download URL: layerd-2022.8.10.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for layerd-2022.8.10.tar.gz
Algorithm Hash digest
SHA256 abbbb15e5bdde85b3f4f017f700d1ca8e3478fb962957e9ac2a3b776cf3d37be
MD5 4a161d9203507cb90e25f8e0c592ce5b
BLAKE2b-256 0eedc2c2561d69344e750e8738826f77fdf530092858acbebb208c070a0cb0b5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page