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.3.tar.gz (18.4 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.3-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen_lambda-0.1.3.tar.gz
  • Upload date:
  • Size: 18.4 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.3.tar.gz
Algorithm Hash digest
SHA256 3a111ad44933235bf02e4ddfcca4936e06e341f449eeee2b3d850f673edfe3be
MD5 15bc19ae24f6681917e5f88f07a8b9da
BLAKE2b-256 3de46dcec552956983721b16d54173228c87a61da9cafa4e6e91dcc490822037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen_lambda-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 43.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71f39a447b9ed9f20516c705260ad1c8c4d7c75098537c4ad2dfd6139f5e5bd6
MD5 8aada0f7a53a3fe7cf0f100d83a73724
BLAKE2b-256 50150cd09809bfefd56be4d5f742771f9a53b5866caa0c366545c27641b060b6

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