lambda-twiddle
Simple interface for modifying lambda environment variables.
const AWS = require('aws-sdk');
const lambdaSdk = new AWS.Lambda({apiVersion: '2015-03-31'});
const lambdaArn = 'arn:aws:lambda:us-east-1:123456789012:function:ProcessRecords';
const variableChanges = {
environmentVariable1: 'string value 1',
environmentVariable1: 'string value 2'
};
const lambdaTwiddle = require('lambda-twiddle');
return lambdaTwiddle.environmentVariables({lambdaSdk, lambdaArn, variableChanges});
The environmentVariables
function returns: