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.2.tar.gz (16.7 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.2-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen_lambda-0.1.2.tar.gz
  • Upload date:
  • Size: 16.7 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.2.tar.gz
Algorithm Hash digest
SHA256 ae73f2559cf7318443b17aea05c4dd310c77726689c69f85fe89f6c11eb6cbe5
MD5 fc5ab0c49ff957a5d53347cd27eb62b7
BLAKE2b-256 a85c6f351f295f920c31e54d735324e46715094edbe675cc446c096e90302655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen_lambda-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 39.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ee3ac0e9e370de343aa46279625c68921d35490f4d3ae88fd98f6b3f65c7ae7
MD5 b7876d084e808bee01c009358321eca8
BLAKE2b-256 cb94b8668267dbc3018c3ad6f355ecc4342b4a0b9c59948e609bfca6e1dc0175

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