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+
  • Terraform
  • Node.js
  • 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.1.tar.gz (15.8 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.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen_lambda-0.1.1.tar.gz
  • Upload date:
  • Size: 15.8 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.1.tar.gz
Algorithm Hash digest
SHA256 802f235ff37a480650f7f2d221569508ec37560ba9c2f89797f73c23d68b7f76
MD5 20292b387b1d2ca6c68af29efd3d6d28
BLAKE2b-256 f2e69e30c0adc123bdb2c1edb3a01bc5177ecfc394ad0d09e45ebdaae1311db0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gen_lambda-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8754ce09f15deb91047f14932984746c168dde788da2543286eb15417601484d
MD5 565c97e3a8e920a01b75b843fa272f31
BLAKE2b-256 9afd7bcdc80839fee412b0c4f8986230c8927b1a43d4b14cb82cabaf639ba85e

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