What is the best practice in regards to env variable with serverless framework.
Ive heard some discussion on the python dotenv environment, but Im not too experience with python so looking for guidance on setting this up and using (an example would be good!)
For example, I want to have an environment variable for db_arn in my serverless handler function.
db_arn = "ec2-xx-xx-xx-xxx.eu-west-1.compute.amazonaws.com"
def getCustomer(): #connect using db_arn
Id like db_arn to be an environment variable (dev, test, prod for example), rather then the hard coded string.
How can this be done with dotenv and how would you organise the serverless service to enable this?
Help much welcome thanks!