Deploy Lambda functions using AWS CodeDeploy
npm install codedeploy-lambdaCodeDeploy-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.
```
npm install --global codedeploy-lambda
``
codedeploy-lambda -z ./lambda-bundle.zip -a demo-app -g demo-group -t myAlias demo-lambda --console
`
codedeploy-lambda --app
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
``
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.
CodeDeploy-Lambda is MIT Licensed