1.2.0 • Published 1 year ago

use-lambda-env v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

use-lambda-env

A quick CLI utility to grab environment variables from AWS Lambda functions, and execute shell commands with those environment variables.

Primary expected use-case: running a local development environment with config from a deployed lambda function, while avoiding the need to share secret files among developers. Developers would be expected to simply have AWS CLI access configured (preferrably with short-lived credentials), with Lambda:GetFunction permission to read the lambda function, along with KMS:Decrypt access to the environment variable encryption key used for the function (if applicable).

Example usage

use-lambda-env --region ap-southeast-2 your-function-name node index.js

I'd recommend putting the above in a script in package.json, so that developers don't need to remember it, and so you can update the function name for all developers easily when needed.

You can also just show the environment variables as a JSON blob by doing

use-lambda-env show --region ap-southeast-2 your-function-name

Contributing

This repository uses semantic-release. Please use the semantic commit message format for any contributions.

Code style / formatting is handled by ts-standard - please run npm run lint:fix to auto-fix your code before committing, or install StandardJS - JavaScript Standard Style VS code plugin to auto-fix every time you save.

1.2.0

1 year ago

1.1.3

2 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago