Prerequisites
- Admin role or Edit Organization Settings permission in env zero.
- A TFC or TFE API token that can read workspaces, variables, variable sets, and state, and can lock and unlock workspaces. Create a user token under User Settings > Tokens in TFC.
- A TFC workspace that is safe to migrate, such as a development workspace. It must use a GitHub, GitLab, Bitbucket, or Azure DevOps repository. Pick one with no run in progress.
- The exact name of your TFC organization, for example
acme-corp.
If the workspace uses a self-hosted VCS, private git modules, or a
.tfvars file, read Before you start first. Pick a workspace that uses none of them for this tutorial.Connect and scan
1
Start the wizard
Go to Organization Settings > Migration and click Start Migration.
2
Enter your TFC details
Enter your TFC organization name in Terraform Cloud Organization Name and your token in Terraform Cloud API Token. Click Connect & Scan.
3
Wait for the scan
The wizard scans in three phases: Workspaces, Variable Sets, and Projects. A progress count shows how many workspaces and variable sets it has scanned. The scan is read-only.
Invalid organization name or API token. Please verify your credentials and try again.
Select the workspace
1
Find your workspace
The wizard lists your TFC projects and their workspaces. Use Search workspaces… to find yours.
2
Select only that workspace
Check your workspace and no others. Each TFC project becomes an env zero project, and each workspace becomes an environment.
3
Continue
Click Continue to Review.
Resolve issues
The wizard checks your selection for two kinds of issues: sensitive variables with no value, and VCS providers that are not connected to env zero. If it finds none, it showsNo issues found for the selected workspaces. You can proceed to the next step. and you can continue.
1
Enter missing secrets
TFC never shares sensitive values, so migrated sensitive variables arrive empty. Expand the workspace card, enter a value for each variable, and click Save Secrets.
2
Connect the VCS provider
If the wizard lists VCS connection required, click the Connect button for the provider, for example Connect GitHub, and complete the OAuth flow.
Create the environment
1
Review the summary
The summary lists your workspace with its Terraform version, repository branch, and variable count.
2
Create it
Click Create in env zero. The workspace status changes from Migrating… to Migrated.
- Creates the project and the environment. The environment starts locked.
- Copies the variables and configuration sets.
- Locks the TFC workspace, copies its state to the env zero remote backend, and unlocks it.
- Starts a drift detection plan to check the imported state.
1 of 1 migrated when it finishes. If the workspace runs Terraform 1.6 or later, the summary shows Converted to: OpenTofu, and the environment runs on OpenTofu. See Review and migrate.
Check the result
1
Open the environment
Open the new project in env zero and click the environment that has your workspace’s name.
2
Check the drift detection plan
Open the deployment history and find the drift detection plan. A plan that reports no changes means the imported state matches your infrastructure. If it reports changes, see Drift detected after migration.
3
Check the variables
Open the environment’s variables and compare them with the TFC workspace. Sensitive variables have values only if you entered them in the Resolve step.
Go live when you are ready
Click Continue to Go Live to open the cutover step, or leave the wizard now. Your session is saved, and the TFC Migration widget on your homepage has a Resume Migration button. Go live locks the TFC workspace permanently and unlocks the env zero environment. The wizard has no undo. When you go live, the wizard first checks whether TFC state changed after the copy. If it did, the results show State refreshed from TFC and env zero runs a new drift check. See Go live.Next steps
- Migrate from Terraform Cloud - Migrate more workspaces, in groups of up to 50.
- Go live - Cut over and finish the session.
- Post-migration checklist - Recreate policies, notifications, and workflow triggers.
- Troubleshooting - Fix credential, scan, and state errors.