Migrate from Amazon OpenSearch Service to self-hosted OpenSearch

A planned move from the managed AWS service to OpenSearch on your infrastructure uses Migration Assistant for data and traffic, and a rebuild for security, ISM and ingest configuration.

On this page

Can you migrate from Amazon OpenSearch Service to self-hosted OpenSearch without a long outage?

Yes, the data can move with Migration Assistant, and live traffic capture can keep the write freeze short, but the security, ISM and pipeline configuration is rebuilt by hand on the self-hosted cluster. Migration Assistant can move workloads across several major versions in one step and supports live traffic capture for low or zero downtime, so the cutover window depends as much on how well you replay and verify traffic as on how long the data copy takes. All OpenSearch software is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe a paid edition. Your self-hosted target therefore carries no license fee to plan for, although you still pay for infrastructure, staff time and any support contract you choose.

Plan the rebuild before the cutover, because it does not travel with the data. Your managed domain's users, roles, role mappings, tenants and identity settings must be recreated in the OpenSearch Security plugin, which means writing the equivalents of config.yml, roles.yml and roles_mapping.yml and configuring the SAML, OpenID Connect, LDAP or Active Directory backend your identity team uses. TLS for node and client traffic, audit logging and the retention of those logs also need explicit design. ISM policies, index templates, ingestion pipelines and Dashboards objects should be inventoried and tested against the new cluster. Confirm with your Migration Assistant plan which of these your source version and tooling carry across, and treat anything it does not carry as a work item with an owner.

What maps cleanly from Amazon OpenSearch Service and what you rebuild

This table compares each configuration area in an Amazon OpenSearch Service domain with its self-hosted OpenSearch equivalent and says whether Migration Assistant carries it over. Read the migration note in each row as the work your team or partner must plan before cutover. State your exact source and target versions before using it, and confirm every row against the current Migration Assistant documentation before relying on it.

CapabilityAmazon OpenSearch ServiceSelf-hosted OpenSearchMigration note
Indices and documentsIndices and documents in the managed domainIndices and documents on your clusterData is carried by Migration Assistant snapshot backfill, then kept current through live capture or a planned write freeze
Index mappings and settingsField mappings and index settingsField mappings and index settingsExpect most to carry over, but check field types, analyzers and deprecated settings for the target version
SnapshotsSnapshot repositories and automated snapshots in the domainSnapshot repositories on storage you controlRepository configuration is not a data copy. Recreate the repository on your storage and confirm snapshot access to the source data
DashboardsOpenSearch Dashboards saved objects in the managed domainOpenSearch Dashboards on your infrastructureConfirm whether saved objects move in your version pair, and plan to export, import and rebuild any items that do not
Users, roles and role mappingsFine-grained access control settings in the domainOpenSearch Security plugin configurationRebuild. Identity backends, roles, role mappings and tenants are not migrated and must be defined on the new cluster
Index State Management policiesISM policies attached to indicesISM policies on your clusterRebuild. Policies and their attachments must be recreated and tested against the new retention and rollover needs
Ingest pipelinesIngest pipelines and processors in the domainIngest pipelines on your ingest nodesRebuild. Export pipeline definitions, confirm each processor exists on the target version, and retest with sample documents
Index templates and aliasesIndex templates and aliasesIndex templates and aliasesConfirm template and alias handling for your version pair, then verify that new indices match the intended mappings
Alerting and client endpointsAlerting monitors and the domain endpoint used by applicationsAlerting on your cluster and your own endpointsRebuild monitors and destinations. Applications must point to new endpoints, TLS certificates and credentials during cutover

Which documented paths move the data

OpenSearch documents four routes for moving data between versions and clusters. For a managed AWS source, each route depends on what the source domain exposes and which versions are involved, so confirm those constraints before choosing a path. The cards below cover the methods, the target installation options, and the checks that decide between them.

Rolling upgrades from older indices

Rolling upgrades are documented for indices created in Elasticsearch 6.0 through 7.10, and they upgrade nodes in place within one cluster. They do not fit a move from a managed AWS domain to a new self-hosted cluster, because the target is a separate cluster and the source is not yours to upgrade node by node. Use this method only if you are upgrading a self-managed cluster you already run, and confirm the index creation versions in your data before you assume it applies.

Supported index versions
6.0 to 7.10
Migration methods

Snapshot and restore

Snapshot and restore copies index data and metadata to a shared repository, then restores it into a new cluster. For a managed AWS source, the question is whether you can register a snapshot repository that your self-hosted cluster can reach, such as object storage with the right plugin and credentials. Confirm snapshot repository access and supported repository types with the AWS documentation for your specific domain version before you plan the cutover.

Remote reindexing

Remote reindexing pulls documents from a source cluster through its HTTP API and writes them into the target. It needs network reachability from the target to the managed domain endpoint and credentials with read access to every index. Throughput is limited by the source domain's capacity and the network path, so large indices can run for a long time, and the source must keep accepting requests throughout. Test it on one index first and measure how long it takes.

Migration Assistant

Migration Assistant can move workloads across several major versions in one step, for example from Elasticsearch 6.8 to OpenSearch 2.19, and it supports live traffic capture for low or zero downtime. It is the option to evaluate when you need a supported path beyond rolling upgrades and when the source is a managed domain. Check which source versions your domain runs against the current Migration Assistant support list before you commit to the approach.

Is Migration Assistant right for you

Choosing the target installation method

The target can be installed with Docker, Helm, the OpenSearch Kubernetes Operator, a tarball, RPM or Debian packages, an Ansible playbook, or Windows. Containers and Helm suit teams already running Kubernetes, while tarball, RPM or Debian packages and Ansible suit VM-based estates. Pick the method your platform team can patch and back up consistently, because the installation method determines how upgrades and configuration changes are applied after cutover.

Installation options

How snapshots, capture and the target cluster fit together

The diagram starts at the managed AWS domain, where a snapshot repository gives Migration Assistant a copy of existing indices and metadata to backfill from. Live client traffic passes through a capture proxy that records requests while the backfill runs, and Migration Assistant replays them into the self-hosted target cluster. The trust boundary separates the AWS account from the client's infrastructure, so check who can reach the snapshot repository, where it is stored, and that the target security plugin is configured before any client is switched at cutover.

Data and traffic paths across the AWS trust boundary during migration.

Rebuilding security, ISM and ingest pipelines on infrastructure you control

Amazon OpenSearch Service configuration does not move with the data, so the team must recreate every security, lifecycle and ingest setting on the self-hosted target before any application is switched over. On the target, the OpenSearch Security plugin needs an identity backend for each sign-in path the business uses: SAML or OpenID Connect for the SSO provider, Active Directory or LDAP for directory-backed accounts, and Kerberos or JSON Web Token where those are in use today. Confirm which of these the source domain actually uses, because a team that rebuilds only the login method it notices will miss service accounts and API clients. Next, rebuild role-based access control with the document-level and field-level security and field masking rules that the source roles apply, plus the TLS settings for node-to-node and client traffic and the audit logging you will need for review. Map each external group to a role mapping so that SSO users receive the same permissions they had on the managed service.

Index State Management policies, ingest pipelines and index templates are configuration you must export, translate and test, not data you can copy. Export each ISM policy and check its states, transitions, rollover conditions and notification actions against the target version, then confirm that existing indices are attached to the right policy after restore. Ingest pipelines and index templates need the same treatment: confirm processor behavior, field names, default mappings and pattern matching on a test cluster loaded with representative documents. Before cutover, inventory every policy, pipeline, template, role, role mapping and audit setting in the source domain, and record an owner and a test result for each item. Do not treat the inventory as complete until a second person has checked it against the live domain configuration, since items attached to a single index or a single client are easy to miss.

Keep the rebuilt configuration in version control so that every change to roles, mappings, pipelines and policies has an author, a reason and a review. Have the team's security and compliance leads review the security configuration and the audit logging settings before they go live, because they are the people who will answer for access during an assessment. Store secrets such as bind passwords and signing keys outside the repository, and confirm how your team will rotate them. Plan the review as a gate in the cutover checklist rather than as a later clean-up task, and confirm with your own compliance owners which evidence they need from the rebuilt configuration.

How to migrate from Amazon OpenSearch Service in phases with a parallel run

This sequence moves a managed Amazon OpenSearch Service domain to self-hosted OpenSearch in controlled stages, so each index set is proven on the target before clients depend on it.

  1. Inventory indices, mappings, policies, pipelines and clients

    Your team, with the DeployOpen team if you engage us, lists every index, alias, index template, mapping, ISM policy, ingest pipeline, saved search, role, role mapping and client application that talks to the domain. Each item is tagged as migrated by Migration Assistant, rebuilt by hand, or retired. Security configuration, ISM policies and ingest pipelines are generally not carried across by the migration tooling, so they appear on the rebuild list from the start. The output is a signed inventory with an owner for every client and a rebuild list that the security and platform teams have reviewed.

  2. Size the target and decide the cluster architecture

    Set node counts, storage, memory and shard layout for the self-hosted cluster based on the measured load of the managed domain, not on the domain's instance type alone. Apply the OpenSearch cluster guidance: dedicated cluster manager nodes, replicas placed on separate nodes, and shard allocation awareness across failure domains such as racks or availability zones you control. Confirm the OpenSearch version to target against the current release and maintenance status on the OpenSearch releases page, and record the decision and its reasons. The output is an architecture decision record that the infrastructure and security teams sign off on.

  3. Run a pilot on a non-critical index set

    Choose one low-risk index set, such as a development or archived log stream, and move it end to end: snapshot, restore through Migration Assistant, rebuild its roles and lifecycle policy, and point one test client at it. The pilot exposes mapping differences, plugin gaps, authentication wiring and dashboard breakage before production data is involved. Record each defect, its fix and the time it took. The pilot is complete when the test client reads and writes correctly and the team has a written runbook for the production steps.

  4. Backfill with Migration Assistant and validate counts and mappings

    Use Migration Assistant to backfill the production indices from snapshots into the target cluster while the source keeps serving traffic. Then compare document counts per index, mapping definitions, aliases and shard counts between source and target. Migration Assistant supports moving data across several major versions in one step, but you still confirm each mapping and analyzer against what your applications expect. The output is a validation report with zero unexplained differences, and any remaining gaps are written down with an owner.

  5. Choose between a write freeze and live capture

    This is the main decision in the sequence. A write freeze stops indexing on the source during the final backfill, which is simpler and gives an exact cutover point, but it means writes queue or fail for the freeze window. Live capture and replay keeps the source writable: Migration Assistant records incoming requests through a proxy and replays them on the target, which supports low or zero downtime but adds a proxy in the request path, more monitoring, and a need to handle replay ordering and errors. Write-heavy logging paths usually push toward live capture, while low-volume or batch-written indices can often accept a freeze. Confirm the choice with the application owners and record the freeze window or replay plan per index set.

  6. Run live capture and replay for write-heavy paths

    For the indices chosen for live capture, route client writes through the capture proxy and replay captured requests against the target while the source keeps serving. Monitor replay lag, rejected requests and document count drift between clusters for as long as the capture runs. Investigate every drift and error before cutover. The step is complete when the replayed target matches the source within the tolerance the owners agreed and no unexplained error remains open.

  7. Operate a parallel run and compare dashboards

    Send production read traffic to both clusters for a period the owners agree, and compare search results, aggregation outputs, alert counts and dashboard figures side by side. Rebuilt OpenSearch Dashboards content, roles and role mappings are checked here for access as well as correctness, since users in each group should see the same data on both sides. Differences are logged, classified as expected or defective, and fixed before cutover. The output is a parallel-run report that the business owners of each dashboard accept in writing.

  8. Cut over clients and retain the managed domain

    Switch client endpoints, DNS entries or service configuration to the self-hosted cluster in a planned change window, with a documented rollback that points clients back to the source. Keep the Amazon OpenSearch Service domain available in read-only or reduced form until the retention period agreed with the client has passed and no client still reads from it. Only then delete the managed domain, and first confirm that final snapshots and the retained exports are stored in the location your data-handling rules require. The step closes when the domain is removed, the change record is filed and the inventory shows every item as migrated, rebuilt or retired.

Choosing the migration path by downtime tolerance and data volume

This path suits teams that can stop writes to the source domain for a window agreed with the application owners. Migration Assistant takes a snapshot of the managed domain, restores or reindexes the data into the self-hosted target, and then cuts clients over once document counts and queries match. Because the source stops accepting writes, the backfill has a clear end point and the team does not have to reconcile changes made during the copy.

  • Freeze scope: Decide which indices, aliases and ingest pipelines must stop, and which writers (services, shippers, scheduled jobs) must be paused or redirected.
  • Target readiness at cutover: The self-hosted cluster needs the security plugin, TLS, roles, role mappings and ISM policies in place before clients connect, since none of these move with the data.
  • Testing required: Rehearse the freeze on a copy of production, measure how long the snapshot and backfill take on your data, and compare document counts and sample queries.
  • Extra work: Plan the rollback path, the client configuration change and the monitoring that confirms writes have resumed on the new endpoint.
  • Dependencies: Confirm the supported version pairing for your source and target in the migration documentation before you pick a target release.

Check whether the freeze window your business agrees to is long enough for the rehearsed backfill, with margin for retries.

What drives the cost and duration of migrating from Amazon OpenSearch Service

This table lists the factors that change the effort of leaving Amazon OpenSearch Service for a self-hosted cluster, with whether each is a one-time or recurring cost and what to request in a quote. No fee or duration is given here because none is supplied for this topic, so use the rows to scope a written quote rather than to estimate one.

DriverWhy it changes cost or effortOne-time or recurringWhat to ask for in a quote
Index count and data volumeMore indices and bytes mean longer snapshot backfill, more validation and a longer cutover window.One-timeBackfill approach, validation method and how document counts are compared per index.
Security roles, users and identity integrationsIAM-based access in the managed service must be rebuilt as Security plugin roles, role mappings and SSO backends.One-time, with ongoing role changesRole inventory, mapping from IAM policies, SAML or OIDC backend setup and access review handover.
ISM policies and ingest pipelinesLifecycle policies and pipelines are configuration the migration does not move, so each must be rewritten and tested.One-time, then ongoing tuningCount of policies and pipelines, test data for each, and how changes are versioned afterward.
Index templates, alerting and monitoring jobsTemplates, alert monitors and dashboards must be recreated and checked against the target version.One-timeInventory of templates, monitors and dashboards, and which ones depend on managed-service features.
Client applications and log shippersEvery application, agent and shipper that points at the managed endpoint needs a new endpoint, credentials and a switch plan.One-time per client, plus ongoing maintenanceList of clients, owners, credential rotation approach and the order of switchover.
Tolerance for write downtimeA write freeze is simpler to plan. Live traffic capture adds proxy, replay and validation work.One-timeStated downtime allowance, whether Capture and Replay is in scope and the rollback plan.
Target architectureA single site with VMs is simpler than multi-zone with cluster manager separation, shard awareness or the Kubernetes operator.One-time build, then recurring operationsNode roles, zone layout, deployment method, TLS design and backup target.
Internal team skillsTeams new to OpenSearch security, snapshots and upgrades need more guidance and review, which lengthens the handover.One-time for training, recurring for operationsWho does which task, what knowledge transfer is included and what runbooks are delivered.

What usually goes wrong in a managed-to-self-hosted move

Managed OpenSearch hides several layers of configuration behind the AWS console, and those layers do not follow the data when you leave. The cards below cover the items teams most often find missing at cutover, each with the check that catches it before users notice.

Security configuration assumed to move

Teams often expect users, roles, role mappings, SAML settings and tenant data to arrive with the indices. In practice, the security configuration of the managed domain is not a file you copy across, so you rebuild identity backends, TLS, roles with document and field controls, and audit logging on the self-hosted cluster. Prevention: build a security inventory from the managed domain's access policies, fine-grained access settings and SSO configuration, then run a security review of the new cluster before cutover.

OpenSearch security docs

ISM policies that stop or change

Index State Management policies control rollover, retention and deletion, and a policy that runs on the managed domain can behave differently once the cluster, plugin version or node layout changes. Policies may also be attached to indices in ways that do not survive restore, so retention can silently stop. Prevention: export every policy and its index attachments, recreate them on the target, and confirm each policy's next scheduled transition on a test index before enabling it for production data.

Ingest pipelines with managed-only processors

Pipelines written against the managed service can reference processors or settings that are not present in your self-hosted build or plugin set. A pipeline that fails silently can drop or misparse logs for days before anyone notices. Prevention: list every processor used in each pipeline, confirm each exists on the target version, replace any that do not, and send a sample of production events through the new pipeline and compare the output field by field.

Hardcoded endpoints and credentials

Application code, log shippers, dashboards and scripts often point at the AWS domain endpoint and use IAM-based or access-key credentials. After cutover, these clients either fail or keep writing to the old domain, which can split data across two clusters. Prevention: search configuration repositories, container images, secrets stores and shipper configs for the domain name and AWS auth settings, then switch clients in a planned order with a tested way to point them back.

Dashboards and saved objects left behind

Dashboards, visualizations, index patterns, alerting monitors and saved searches are stored as application objects, and they are not part of the index data that Migration Assistant moves. Teams that assume dashboards arrive with the data discover broken or empty views on the first morning after cutover. Prevention: export saved objects and monitors from the managed Dashboards instance, import them into OpenSearch Dashboards on the target, and check that every index pattern resolves to a populated index.

Target sized without a plan

Right-sizing a self-hosted cluster is harder than sizing the managed domain, because the managed service hid decisions about disk headroom, shard count, replica placement and node roles. An undersized target can hit disk watermarks during backfill, and a poor shard layout can slow every later query. Prevention: document the source's index sizes, shard counts and growth rate, plan dedicated cluster manager nodes and replicas on separate nodes, and load test the target with a copy of production data before choosing the cutover date.

What buyers ask before they hire help to migrate from Amazon OpenSearch Service

How much does a migration from Amazon OpenSearch Service cost?

The cost depends on the scope agreed in writing, not on a standard package. The main drivers are the number of clusters and indices, the volume of data to backfill, how much live traffic must be captured and replayed, how many security roles, ISM policies and ingestion pipelines must be rebuilt, and the number of environments that need validation. Ask for a quote that lists each deliverable, who performs it, what is one-time work and what recurs, such as ongoing support or upgrades under a retainer. DeployOpen does not publish a price list, and a quote follows from the written scope.

How long does it take to move off Amazon OpenSearch Service?

The duration depends on the same drivers as cost: cluster count, data volume, the downtime your workloads can tolerate, and how much of the security, ISM and pipeline configuration must be rebuilt by hand. A search workload that can accept a write freeze during backfill is simpler than a log pipeline that must keep ingesting without interruption, which requires live traffic capture. Your provider should give a timeline only after the scope and change windows are agreed. Treat any timeline given before that point as an assumption to test.

What must our team provide before a migration starts?

The migration needs access that the work depends on, and most delays come from missing items rather than from the technical work itself. Prepare:

  • Read access to the source domain, including index settings, mappings, aliases, templates and the AWS account and domain configuration.
  • A complete inventory of indices, saved objects, ISM policies, users, roles, role mappings, ingestion pipelines and client applications.
  • Named owners for security, compliance and each consuming application, with authority to approve access and retention decisions.
  • Agreed change windows and a process for freezing writes if the chosen path requires it.
  • A target environment with capacity, network paths and TLS certificates provisioned in your infrastructure.
Can our own engineers migrate from Amazon OpenSearch Service themselves?

Yes, a capable internal team can perform the migration if it has the skills and time, and the OpenSearch documentation covers the migration paths. The main risks are incomplete inventory of security and ISM configuration, which the managed service does not move, underestimated validation of document counts and query behavior, and cutover mistakes that leave clients pointing at the wrong cluster. Teams that take this on should plan a rehearsal in a non-production environment, keep the source domain running until validation passes, and assign someone to own rollback. A partner can take over any of these parts under a fixed-scope agreement.

Does OpenSearch have a paid edition I need to license?

No. All software in the OpenSearch project is released under the Apache License, Version 2.0, and the OpenSearch FAQ does not describe any paid edition. Moving to a self-hosted cluster therefore removes the managed service fee, but your infrastructure, storage, staffing and any support contract become your own costs. Confirm the license terms for any add-on or third-party component you plan to use, since those are separate from the project itself.

How long is a self-hosted OpenSearch version maintained?

A version stays under maintenance until the next major version enters maintenance or one year passes, whichever is longer. During maintenance it receives bug fixes and security patches but no new features, so you will need a planned upgrade path to stay supported. Check the current end-of-life dates on the releases page before you pick a target version, and build an upgrade schedule into your operating plan from the first day.

How DeployOpen works on this

DeployOpen starts by fixing what moves from the managed service, what must be rebuilt on self-hosted OpenSearch, and where the cluster will run. The work is delivered in your own infrastructure, with security, index lifecycle and pipeline configuration rebuilt and tested before cutover.

How we scope

  • Engagements are fixed-scope, with the migration path, source and target versions, and deliverables agreed in writing before work starts.
  • We inventory indices, snapshot repositories, domain access policies, fine-grained access control, ISM policies and ingestion pipelines on the managed domain.
  • Scope records which settings Migration Assistant will not move, such as security configuration and lifecycle policies, so each one has a named rebuild task.

How we build

  • We deploy the target OpenSearch cluster in your cloud accounts or data centers, with dedicated cluster manager nodes and replicas placed on separate nodes.
  • Migration Assistant moves data and metadata, and we test the metadata evaluation output against your index mappings before any production traffic moves.
  • Security, ISM and pipeline configuration is rebuilt in code and reviewed, then validated with document counts and query checks against the source domain.

How we hand over

  • Handover includes runbooks for cutover, rollback, snapshot schedules and the steps used to validate each index before switching clients.
  • You receive configuration, identity and TLS settings, role mappings and lifecycle policies as versioned artifacts your team can review and reproduce.
  • We document the decisions made during scope and build, including items the managed service handled that your team now operates directly.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so patch and minor version updates have a planned owner after cutover.
  • Confirm with the OpenSearch releases page which version your target will run and how long it stays in maintenance before you commit to a schedule.
  • Ask any partner for a written quote tied to this scope, including what is one-time migration work and what recurs under a retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.