codedeploy-lambda

1.0.6 • Public • Published

CodeDeploy-Lambda

CodeDeploy-Lambda is a simple script to upload lambda code, publish a new version and deploy it to a Lambda Alias using AWS CodeDeploy.

In order for this command to work, the Lambda function, its Alias, a CodeDeploy Application and Deployment Group must already exist.

The utility was created to replace a few AWS Cli commands I would normally use to deploy functions from the desktop, or in a custom CI/CD solution.

Installation

npm install --global codedeploy-lambda

Examples

codedeploy-lambda -z ./lambda-bundle.zip -a demo-app -g demo-group -t myAlias demo-lambda --console

Usage

codedeploy-lambda --app <app> --group <group> --alias <alias name> [-b <path/to/bundle>] [-t <Lambda Version>] <function name>

  Required Parameters
    -a --app:   CodeDeploy Application Name
    -g --group: CodeDeploy Deployment Group Name
    -A --alias: Lambda Alias Name

  Option Parameters
    -b --bundle: path to bundle containing updated function code
    -t --target: Target Lambda Version ($LATEST if not provided)

    -c --console: show AWS CodeDeploy Console on deploy

    -h --help: show these instructions

Contributing

Pull requests are always welcome! This tool was originally made for my own use, but has turned out to be useful for others. Any potential improvements are gratefully recieved.

License

CodeDeploy-Lambda is MIT Licensed

Readme

Keywords

Package Sidebar

Install

npm i codedeploy-lambda

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

14.1 kB

Total Files

16

Last publish

Collaborators

  • barney_parker