# Deployment groups

You specify deployment groups with the `deploymentGroups` property. It is an object whose keys are paths to deployment groups, and values contain configuration for the corresponding deployment group.

#### Example

Here's an example of deployment configuration with five deployment groups:

{% code title="deployment/targets.yml" %}

```yaml
deploymentGroups:
  all/shared: {}
  all/application/dev: {}
  all/application/prod: {}
```

{% endcode %}

The deployment groups in this example form the following hierarchy:

```bash
all
├─ shared
└─ application
   ├─ dev
   └─ prod
```

There is one root-level deployment group named **all**, and under it, there are deployment groups **all/shared** and **all/application**. The **all/application** deployment group has two children: **all/application/dev** and **all/application/prod**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://targets.takomo.io/configuration/deployment-groups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
