The getEnvData function currently accepts two arguments: the environment in which the data is stored, and the key by which the data can be accessed. The function returns the value associated with the given key.
Instead, the getEnvData function should accept an environment argument and an array of keys instead of a single key. The function should return a map of env keys and values.
This will necessitate a separate issue in the aws-lambda-utility-layer project.
Once the aws-lambda-utility-layer package has been updated, the layer itself will need to be updated and pushed. Then, any lambda function that currently uses getEnv should be updated with the latest version and refactored to take advantage of the updated package.
The
getEnvData
function currently accepts two arguments: the environment in which the data is stored, and the key by which the data can be accessed. The function returns the value associated with the given key.Instead, the
getEnvData
function should accept an environment argument and an array of keys instead of a single key. The function should return a map of env keys and values.This will necessitate a separate issue in the
aws-lambda-utility-layer
project.Once the
aws-lambda-utility-layer
package has been updated, the layer itself will need to be updated and pushed. Then, any lambda function that currently usesgetEnv
should be updated with the latest version and refactored to take advantage of the updated package.