A migration form one piece of software to another is never trivial, especially when that software manages all of your infrastructure. Often a cost benefit analysis is done to see if the effort to migrate is worth the savings that you are receiving with the new software. At Scalr, we believe in being transparent as well as fair, which is why we make it seamless to migrate into as well as out of Scalr. There are two ways of doing this, first is with our migration module and second is by updating your backend or code block.
If you’re using Terraform to everything else, then why not use it to migrate from Terraform Cloud to Scalr? Our module will use TFC and Scalr API tokens to migrate the following objects:
You will also have the option to do a mass migration at once or choose to do specific workspaces as needed.
If you would prefer to do the migration with the module mentioned above, the process is straight forward. Before starting, make sure you have stopped all operations in Terraform Cloud.
First, pull down the state from Terraform Cloud:
Next, get the API token from Scalr:
Update the code and add Scalr as the new cloud backend:
To initialize Scalr as the backend run:
Finally run:
Check out the video below for a longer more detailed explanation.
You will now see the state in the Scalr workspace. Get started using Scalr today!