Feature idea: Lambda Environment Variables set from deployment environment variables

Open
#321 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, javascript, nodejs
Domain
cli, cloud

Research direction

Start by locating the existing deploy.env handling and the deployment command's environment-variable flow. Define the accepted prefix convention and how values map into the Lambda runtime environment, then identify tests or deployment checks that would demonstrate the mapping; the issue names no specific files or tests.

Written by the indexing model from the issue text.

Description

enhancement hacktoberfest

The deploy.env mechanism is fine, but doesn't work great for secrets, as the build/deploy process has to create/modify the file itself to add secret values. Would be great to have a mechanism to include values from the deploy-time environment to the runtime environment. Perhaps something like a convention such that all environment variables with a prefix are automatically deployed. for instance:

setting:
LAMBDA_NODE_DEPLOY_FOO=bar

would be funcitonally equivalent of adding
FOO=bar
to the deploy.env file.

Don't want to go and try to build a PR for this if it's not something that would potentialy be accepted.

Dominant language
JavaScript
Stars
1.4k
Forks
185
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from motdotla/node-lambda

All issues in motdotla/node-lambda

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.