This topic describes how to migrate the schema of an application to another application in the OpenSearch console.
Procedure
1. Log on to the OpenSearch console. In the left-side navigation pane, click Instance Management. On the Instance Management page, find the application whose schema you want to migrate and click Details in the Actions column.
2. On the Instance Details page of the application, click Export Template to export the schema of the application, including table schemas, index configurations, and data source configurations.
3. After the template is exported, the browser automatically downloads a TXT file.
4. On the Instance Management page, find the application to which you want to migrate the application schema and click Configure in the Actions column.
5. In the Application Schema step of the Configure Application wizard, click Import Template.
6. In the Use Template panel, click Upload Local File to upload the downloaded TXT file.
7. After the TXT file is uploaded, you can also modify the schema of the destination application. If you do not need to modify the application schema, click Next. After the modification is complete, click Completed.
Usage notes
You can follow the procedure in this topic to migrate an application schema between applications across regions, between applications of different specifications, or between applications of different types.
If the source application does not have a data source, you can follow the procedure in this topic only to migrate the application schema to the destination application. You need to re-import the data in the source application to the destination application by calling API operations.
If the source application has a data source, the downloaded template does not contain database information by default. You need to manually configure the database information for the destination application after you upload the template.