1.1.0 • Published 11 months ago

ulos v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Ulos

Upload Lambda On Save - it's that simple, really.

Ulos is a minimal Nodejs library that watches a file (or folder of files and subfolders) for changes and uploads a new deployment package to AWS Lambda when a change is registered. Files and folders are watched using Chokidar.

Getting started

Ulos is invoked using npx and a series of arguments.

npx ulos --target "path/to/file/or/folder" --lambda "myfunction" --region "myregion" --profile "myprofile" 

--target

Required. A relative or absolute path to the file or folder that will be watched. All files and files within any level of subfolder will be watched and included in the deployment package.

--lambda

Required. The name of the Lambda function to be updated upon file changes. Note that any existing deployment package will be overwritten upon running Ulos.

--region

Required. The region in which the Lambda function resides.

--profile

Optional. Ulos will attempt to fetch default credentials from the system using the AWS SDK V3 @aws-sdk/credential-providers. If you would like to provide a different profile or you have no default profile set, you can provide an explicit profile here.