Skip to content

Harsh-br0/lambda-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-push

A streamlined CLI utility for packaging and deploying Python code to AWS Lambda functions.

Demo Output

Installation

pip install -U git+https://github.com/harsh-br0/lambda-push

Features

  • Simple deployment: Package and deploy Python files to Lambda with a single command
  • Customizable file selection: Include specific files using glob patterns
  • Credential management: Built-in AWS credential setup and validation with profiles
  • Dry run mode: Create deployment packages without uploading to AWS

Usage

Basic Usage

Deploy all Python files to a Lambda function:

lambda-push my-function-name

Custom File Selection

Include specific files or patterns:

lambda-push my-function-name --include "*.py" --include "modules/**/*.py"

Dry Run

Create the ZIP package without deploying to AWS:

lambda-push my-function-name --dry

AWS Credentials Setup

Configure AWS credentials for deployment:

lambda-push --setup

Command Line Arguments

Argument Description
function_name Name of the AWS Lambda function to update
-i,--include PATTERN Glob pattern to include files (can be used multiple times)
-d,--dry Create the ZIP file without deploying to Lambda
-p,--profile Select specific AWS profile (default: lambda_push)
--setup Configure AWS credentials

Examples

Deploy Specific Files

# Deploy only handler.py and utils directory
lambda-push my-function --include "handler.py" --include "utils/**/*.py"

Create Package Without Deploying

# Create a ZIP file named "my-function.zip" without deploying
lambda-push my-function --dry

AWS Credentials

The tool requires properly configured AWS credentials with permissions to update Lambda functions. You can set up credentials using:

  1. The --setup flag which guides you through the process
  2. AWS CLI's aws configure command (Make sure to use lambda_push profile)
  3. Environment variables
  4. AWS credentials file

Requirements

  • Python 3.6+
  • AWS account with appropriate permissions
  • Boto3

About

A streamlined CLI utility for packaging and deploying Python code to AWS Lambda functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages