Using the Serverless framework, I want to be able to change the AWS region from an envrionment variable.
provider:
name: aws
region: ${env:AWS_REGION}
Then, AWS_REGION
can be set to eu-west-2
.
However, I want to have that set in a .env
file:
AWS_REGION=eu-west-2
And then have that .env
read by Serverless.
There are many topics about setting variables in the serverless.yml
file, and exporting them from that file, but I want to put them into the file.