im moving report generation to aws lambda to remove this load from main application, but i also need to manage different execution environments, dev, stage and production. for this purpose i manage a set of environment variables where are defined urls for Mysql, Redis, AWS S3 credentials, bucket and so depending of my needs.
i can configure these environment variables from lambda console, but to achieve a set of testing environments i would need to have 3 configured functions, one for dev, another for stage and one more for production.
what i want to achieve is that my project can read from configured environment variables and set the values on startup, this way i don't need to worry about maintaining it from the aws console. my codebase is on java using spring, im guessing there is some java API to manage aws lambda.
i've been searching for this but no luck so far, also im open for suggestions.