>
>
>
> Warning
>
>
>
> At this stage, ensure that you have all indices populated with data in the primary region. Run a bulk index to do that if you haven't already.
>
>
4. Begin replication from the primary to secondary region.
> 1. First, create a connection from secondary to primary. Note that replication in OS works in a "pull" model, so the secondary site pulls data from the primary.
> 2. In the Amazon OpenSearch Service console, select the secondary domain, go to the **Connections** tab, and choose **Request**.
> 3. For **Connection alias**, enter a name for your connection.
> 4. Choose **connect to a domain in another AWS account or region**, and enter the **ARN** of the primary domain.
> 5. Select **Request** to send a permission request to the primary domain.
> 6. Open the primary domain to see and accept the incoming request under the **Connections** tab.
5. Now set up the replication rules for indices.
> 1. SSH into an app node in the secondary region to set up an auto-follow rule for the `posts*` indices because of the daily naming scheme and monthly aggregation.
> 2. For the other indices, replicate each of them. You can also set up a rule with `*` to replicate everything, but that would also include the hidden and system indices which you don't want.
> 3. Set up the auto-follow for `posts*` indices:
>
> > ``` sh
> > curl -XPOST -H 'Content-Type: application/json' -u '