# Migrate Elasticsearch objects (index templates, scripts..) to New Cluster

**URL:** <https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266>\
**Category:** Elasticsearch\
**Created:** [July 10, 2022, 2:34pm UTC](https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266 "2022-07-10T14:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ofir\_Edi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofir_edi/32/78181_2.png) [@Ofir\_Edi](https://discuss.elastic.co/u/Ofir_Edi)\
**Post date:** [July 10, 2022, 2:34pm UTC](https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266/1 "2022-07-10T14:34:28Z")

</div>

Hi,  
We are considering migrating our on-premises cluster to Elastic Cloud.  
Whilst there are many options to migrate indices data (reindex, snapshot & restore) I didn't find what is the best practice to migrate objects like index templates, composable template, scripts, ILM policies, etc. I also tried to see if those are stored in internal indices but could not find such indices.

Is there a tool/API to migrate all of the above or should i use GET API per resource and create it on the new environment.

Thanks,  
Ofir

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 7, 2022, 2:35pm UTC](https://discuss.elastic.co/t/migrate-elasticsearch-objects-index-templates-scripts-to-new-cluster/309266/2 "2022-08-07T14:35:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
