I currently have a few lambda functions that interact with an application inside Elastic Beanstalk. These functions use environment variables that are specific to Staging env. Since I am now going to start moving some things to production, I wanted to know good and practical ways of handling these functions, that is:
- Should I copy this function into another function and set different env variables?
- Is there a way to have different environments in one unique function?
- Should I use runtime variables?
Thanks in advance,