Socket
Socket
Sign inDemoInstall

@resourcefulhumans/update-lambda-environment-config

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@resourcefulhumans/update-lambda-environment-config

A helper script to update lambda environment variables with the current version and deploy time


Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

update-lambda-environment-config

npm version Build Status monitored by greenkeeper.io js-standard-style semantic-release

This script takes the output of aws lambda get-function-configuration and returns an updated environment configuration string with added version, deployTime and node environment from environment variables.

Example

Given this is the configuration for your lambda:

{ 
   "FunctionName": "myLambdaFunction", 
   … 
   "Environment": { 
       "Variables": { 
           "FOO": "BAR" 
       } 
    } 
} 

If called like this:

$ VERSION=1.2.3
$ DEPLOY_TIME=1234567890
$ NODE_ENV=production
$ VARS=`aws lambda get-function-configuration \
--function-name myLambdaFunction \
| ./node_modules/.bin/update-lambda-environment-config`

it sets $VARS to this

FOO="BAR",VERSION="1.2.3",DEPLOY_TIME="1234567890",NODE_ENV="production"

which can be used for updating it via aws lambda update-function-configuration:

aws lambda update-function-configuration \
--function-name "myLambdaFunction" \
--environment "Variables={$(VARS)}"

See it in action here.

Keywords

FAQs

Package last updated on 14 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc