AWS Lambda CLI
A simple CLI (Command Line Interface) tool to interact with AWS Lambda functions and Lambda layers.
Installation
To get started, install the package:
pip install aws-lambda-cli
and run the help command:
lambda --help
See examples below for more details.
License note:
This project is licensed under GPL-3, whose license restrictions apply to the distribution (propagation) and modification of this project. Usage for personal/development purposes does not carry the same requirements (disclosure, same license, etc.), however, warranty and liability limitations are still in effect. See section 9 of the license for details.
TODO
- Add layer support
- Add mypy and flake/ruff
- Unittests?
- Build actions
Examples
- Show CLI version
lambda -V
- Use a cli profile called
work, and act on theeu-central-1region:
lambda --profile work --region eu-central-1 <subcommand>
Type lambda --help for more authentication options.
- Configure default parameters (such as authentication) to be used with all the following commands:
This saves the configuration to file in the user's home directory.
See
lambda config --helpfor more details.
lambda config set --profile work --region eu-central-1
lambda function Test main.py # Using profile work and region eu-central-1
- Build, upload, and publish
main.pyto the functionTest:
lambda function Test main.py --publish
- Use an S3 bucket called
resources:
lambda function Test main.py --aws-s3-bucket resources
- Upload a project folder:
lambda function Test src
- Build locally, and keep the output file without uploading:
lambda function Test main.py --out out.zip --no-upload
Metadata
Release files for aws-lambda-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aws_lambda_cli-0.2.0.tar.gz | 20.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aws_lambda_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / aws_lambda_cli-0.2.0.tar.gz
| Download URL | aws_lambda_cli-0.2.0.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3738aed4304cd46aeee41d2174d65e8744684254f0ad67e1175404bdfbe59be
|
|
BLAKE2b-256 checksum How to use checksums |
1bccf29a8a64ca85c487dae096d9cce4661788abf9219b4dd00957332a493fe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Windows/10
|
Release files / aws_lambda_cli-0.2.0-py3-none-any.whl
| Download URL | aws_lambda_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fd0a9a1da1186ba6dd7cfc43fdb7e74a85bd22ac1c408fbba3c9a39e0b64303
|
|
BLAKE2b-256 checksum How to use checksums |
5ff858a314d43aee38a19ac37d3eb420a2b78daa4aceb9ad0c6992b57f303bd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.5 Windows/10
|
Security for aws-lambda-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.