# Migrate to OpenSearch

### Overview

This procedure migrates all the data from the current department box storage engine *(such as S3 or DynamoDB)* to OpenSearch. It's designed to be safe and repeatable — you can run it multiple times without causing duplicates or data loss.

### Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

<details>

<summary><code>x is a department box</code></summary>

#### What does it do?

Specifies a department box.

#### Where does it go?

This phrase should be written on a **new line**.

#### Is it required?

✅ Yes — This phrase is **required**.

#### Does it require data?

✅ Yes — Replace **x** with the department box's name.

#### Example

```
HR is a department box
```

</details>

<details>

<summary><code>migrate x to opensearch</code></summary>

#### What does it do?

Migrates data from the department box storage engine to OpenSearch.

#### Where does it go?

This phrase should be written on a **new line**.

#### Is it required?

✅ Yes — This phrase is **required**.

#### Does it require data?

✅ Yes — Replace **x** with the department box's name.

#### Example

```
migrate HR to opensearch
```

</details>

### Examples

#### 1. Migrate the Department Box "HR"

```
HR is a department box
migrate HR to opensearch
```

#### 2. Migrate the Department Box "employees"

```
employees is a department box
migrate employees to opensearch
```
