I want my default active profile to be production
if -Dspring.profiles.active
is not set.
I tried the following in my application.pro
In AWS LAMBDA:
For $ sam local
you add the following line in your sam template yml file:
Resources:
FunctionName:
Properties:
Environment:
Variables:
SPRING_PROFILES_ACTIVE: local
But in AWS Console: in your Lambda Environment variables just add:
KEY:JAVA_TOOL_OPTIONS
VALUE:-Dspring.profiles.active=dev