Environment groups
Deploy a service to multiple environments at once by grouping them into an environment group.
An environment group is a set of environments that a pipeline stage targets together. Instead of selecting environments one by one, you select the group, and Harness deploys the service to every environment in it.
Create an environment group
In the Harness application, expand Deployments in the left navigation, select Environments, then select the Environment Groups tab. To create a group, select + Create environment group and complete the following steps.
Enter a Name for the environment group, or select the name Harness suggests.
Optionally, add Metadata, such as a description and tags.
Under Environments, add the environments you want in the group. You can select existing environments scoped at the project, organization, or account level, or create a new environment inline.
Optionally, turn on Deploy environments in parallel to deploy to every environment in the group at the same time instead of one after another.
Select Create.
Use an environment group in a pipeline
When you configure the environments for a pipeline stage, Harness asks you to choose between Environment and Environment group. Environment deploys to one or more environments you select individually. Environment group deploys to every environment in a group you select.
For example, if an environment group contains ten environments, selecting that group deploys the service to all ten.
Next steps
Go to Environment to review the environment entity and how to create individual environments.
Go to Infrastructure definitions to create and manage the infrastructure definitions within an environment.
Last updated
Was this helpful?