Is it possible to get the current region which you are running serverless against when running the script?
For example if I run this command
serverless deploy -r us-west-1 -s test
Is it possible to reference the value of us-west-1 in my serverless.yml file?
Using ${opt:region, self:provider.region} should work. It’s probably more common to include the following snippet inside your serverless.yml then use ${self:custom.region}