In Altostra, environments are targets for deployments. Any time you create a new stack for a project, you must specify the environment to which you wish to deploy it.
The environment itself consists of the following attributes:
- A name, for easy of use.
- A location, the specifies the account and region to deploy to.
- Zero or more parameters, that provide the parameters for stacks.
- Optional policies that determine certain aspects and additional capabilities that extend each stack.
Environments provide an easy way for users to regard the collection of attributes above by name, freeing the users from having to remember these details for every deployment.
Parameters are sets of key-value pairs. They enable you to provide configuration values to stacks that have parameters configured on their resources. The parameter values are applied during deployment, both when creating new stacks or updating existing stacks.
By using parameters, you can share and reuse configuration between stacks for each environment, and you can configure stacks differently for every environment. For example, you can use a parameter for domain names that differ between a development production environment.