Skip to main content

Create/Publish AWS Lambda CLI

Project description

Gen Lambda

Gen Lambda is a CLI tool designed to simplify the process of creating, publishing, and managing AWS Lambda functions.

Features

  • Create new AWS Lambda functions with customizable configurations.
  • Publish Lambda functions to AWS.
  • Remove Lambda functions from AWS.
  • Zip Lambda functions for deployment.
  • Interactive prompts for configuration selection.

Requirements

Before using Gen Lambda, ensure you have the following installed and configured:

  • Python 3.11+
  • Python 3.12+
  • Python 3.13+
  • Terraform
  • Node.js 18
  • Node.js 20
  • Node.js 22
  • AWS CLI (configured with aws configure)

Installation

You can install Gen Lambda via pip:

pip install gen_lambda

Alternatively, you can install it using Poetry:

pip install poetry
poetry install

Usage

The CLI is powered by typer, providing an intuitive interface for managing Lambda functions.

Setup Commands

lambda --help

Create a New Lambda Function

lambda --generate

This command will guide you through selecting:

  • Lambda name
  • Project name
  • Environment (development, staging, production)
  • Runtime (from available templates)
  • AWS Region
  • IAM Role creation

Publish an Existing Lambda Function

lambda --publish

Remove a Lambda Function

lambda --remove

Zip Lambda Function for Deployment

lambda --zip

Configuration

AWS Region Selection

You will be prompted to choose from the following AWS regions:

  • us-east-1
  • us-east-2
  • us-west-1
  • us-west-2
  • eu-central-1
  • eu-west-1
  • eu-west-2
  • eu-west-3
  • ap-southeast-1
  • ap-southeast-2
  • ap-northeast-1
  • ap-northeast-2
  • ap-south-1
  • sa-east-1

IAM Role Management

Gen Lambda allows you to create a new IAM Role if necessary.

Development

To contribute or modify the project, use the following setup:

git clone https://github.com/your-repo/gen_lambda.git
cd gen_lambda
poetry install

Run the CLI locally:

lambda --generate

License

MIT License. See LICENSE for details.

Author

Mikhail Dorokhovich

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

gen_lambda-0.1.5.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gen_lambda-0.1.5-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file gen_lambda-0.1.5.tar.gz.

File metadata

  • Download URL: gen_lambda-0.1.5.tar.gz
  • Upload date:
  • Size: 19.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.0 CPython/3.11.0 Linux/5.15.0-131-generic

File hashes

Hashes for gen_lambda-0.1.5.tar.gz
Algorithm Hash digest
SHA256 7f4f5a6bc99ace3ed93c381a9d5b638e7a07f4681a2fae677112c682f520d103
MD5 dfd9fe3434ac9b0c0ee1d6bdea7b4784
BLAKE2b-256 f36e4c2487e4ee8be804891bc679c4f487972370df895b04f03a5f41299a74cf

See more details on using hashes here.

File details

Details for the file gen_lambda-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: gen_lambda-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.0 CPython/3.11.0 Linux/5.15.0-131-generic

File hashes

Hashes for gen_lambda-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 67993d3a6139562abc33aa2df1e1af667988681e8545818549474db9ec651fb3
MD5 42dcdece1c68264d6f66656c2b8165b7
BLAKE2b-256 6fadfd75d0ff6a83bf7013508b7b7257a0cb3dd7613bbc4ecfd47bd1f0c3f5a3

See more details on using hashes here.

Supported by

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