benrosen / pixel-chess

Multiplayer pixel art chess powered by Phaser, React, and AWS.
0 stars 0 forks source link

getEnvData should accept a list of keys #20

Closed benrosen closed 3 years ago

benrosen commented 3 years ago

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.

benrosen commented 3 years ago

https://github.com/benrosen/aws-lambda-utility-layer/pull/13

benrosen commented 3 years ago

Update implementations: