I'm currently facing a challenge at work involving an AWS Event Bridge scheduler that triggers every minute to send JSON data to a Lambda function. This Lambda processes the incoming JSON and logs data to CloudWatch. I'd like to avoid changing the Lambda code or image frequently, so I'm exploring how to implement an external configuration file that the Lambda can reference each time it runs. Any suggestions on how to achieve this?
5 Answers
Another service you could look into is AWS AppConfig. It's great for managing configurations dynamically, so this could fit your needs well!
How about using environment variables? They can help keep things dynamic, but if you have a lot of settings to manage, this might get tricky.
You might want to check out AWS Parameter Store for your configuration needs. It's specifically designed for scenarios like yours and adds a layer of security for sensitive configs.
Consider using DynamoDB. It’s a solid option for externalizing configurations and can be accessed quickly—but still, think about the potential latency.
Have you thought about storing your config file in S3? It's a straightforward approach, but keep in mind it might add some latency, especially since your Lambda runs every minute.
Yeah, S3 is great, but the latency concern is valid. Depending on how quickly you need the config, it might not be ideal for such frequent calls.