0
votes

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,

1

1 Answers

1
votes

Should I copy this function into another function and set different env variables?

Yes, but you should really be doing this via something like CloudFormation or Terraform instead of copying it manually.

Is there a way to have different environments in one unique function?

No