This project automates the process of extracting automations from a source Contentstack organization in one region and importing them into a destination organization in another region. It facilitates seamless migration of automations between different Contentstack instances.
Before running this project, make sure you have the following:
- A Contentstack account with the necessary permissions for both the source and destination organizations.
- Node.js version 19 or greater installed on your local machine.
- A valid contentstack auth token and organization ID for both source and destination organizations
- Automations should be in a correct format
- Install all the node modules
cd my-project
npm install- Run index.js
npm run dev- Enter source org user auth token & org ID
Enter Source Org Auth Token: ************
Enter Source Organization ID: ***********
Enter Source Region (aws-na, gcp-na, azure-eu): ***********This will start the export of the automations in the source Org.
- Enter destination org user auth & org ID
Enter Destination Org Auth Token: ************
Enter Destination Organization ID: ***********
Enter Destination Region (aws-na, gcp-na, azure-eu): ***********This will start the import of all the automations in the destination org on another region.
Note - Import process will take some time to complete. Once completed it will store in the "Import" folder inside the "Migration Data" folder created.
- Seamless migration of the automation data.
- Supports migration across different regions.
- Enables migration of all the automation projects across various regions in a single go.
- Users must manually set triggers using their Contentstack credentials.
- Third-party connected apps need to be reconfigured with valid credentials.