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.4.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.4-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen_lambda-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 bf9a1fa22191ac1f1c394de37292431433401a5d308ad9fb0136e13c87f15181
MD5 7396a156f5767c26be2202407f257bb5
BLAKE2b-256 a2c29df2965bc6ce272ca780a6eadb44504851ea980107df7bfca51385bdca45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen_lambda-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac112dc6abcbe3d753a08b76649f61f0dae71bd6b4f3eb3ddcc26acb0cf3c45
MD5 f110e34a8df9170aa36121f845c954c8
BLAKE2b-256 526466b8890a7603a91064c524067c81b8600cebce478589436492230139d704

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