0

I am new to AWS serverless application building. How can I share global config data across multiple Lambda function written in Node.js.

1
  • what does the config data you want to share include? Commented Dec 9, 2019 at 13:25

2 Answers 2

3

For configuration, consider:

  1. JSON (or other) properties files packaged with the Lambda functions
  2. environment variables configured on the Lambda functions

If you really need a common persistent source of configuration so that Lambdas do not need to be re-deployed when a configuration change happens, then consider:

  1. Parameter Store
  2. DynamoDB
Sign up to request clarification or add additional context in comments.

Comments

1

For lambda configuration, use AWS Lambda Environment Variables: https://docs.aws.amazon.com/lambda/latest/dg/env_variables.html

If you want same config for multiple lambdas use DynamoDB or any other storage.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.