In my serverless.yml, I’m setting an environment variable like so:
Works fine when I deploy to the default stage, but when I try to deploy to a different stage, I get an error saying stack does not exist. I checked in cloudformation and the stack definitely exists.
However, this works:
AWS_PROFILE=testProfile sls deploy -s test