I wish to set different environment variables for each build stage in my template.yml
I will imagine something like this:
Globals:
Function:
Environment:
Variables:
SomeHost: x.amazonaws.com
DBName: somename
DBPort: 5430
DBUsername: ${var1}
API_BASE_URL: ${var2}
Parameters:
paramEnvironment:
Type: String
AllowedValues:
- stage
- prod
Default: stage
Where I can set
stage:
var1: user1
API_BASE_URL: https://baseurl1.com
prod:
var1: user2
API_BASE_URL: https://baseurl2.com
?And when I run deploy with paramEnvironment
the environment will get all the stage based variables