I want to declare a variable in serverless.yml like this threshold: 10. Should i put it in provider or custom section?
e.g.:
functions:
mylambda:
…
environment:
Threshold: ${self:custom.threshold}
Seem to me both sections should work, but what is the standard or best practices?
Besides, what should go into provider section? I can’t really find any documentation about that. I read through https://serverless.com/framework/docs/providers/aws/guide/intro/ but it doesn’t have talk about that.