I have a SAM app which is working fine. Recently I've started using AWS lambda environment variables to remove some of the hardcoding in code. The issue here is that with the current SAM template.yaml, I need to add the AWS lambda env variables each time I deploy the app.
Part required to be coded in SAM template
When looking up SAM documentation, I see reference to variables like here but I don't think this is not the variable I'm after.
Environment:
Variables:
MESSAGE: "Hello From SAM"