Documentation Index
Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
Use this file to discover all available pages before exploring further.
This guide is for teams moving existing Terraform Cloud or Terraform Enterprise workspaces to env zero. If you’re new to env zero and not migrating from TFC, start with the Quick Start instead.
- Workspace configuration
- Variables and variable sets
- Terraform state
- Version control settings
What this migration covers
- Automatic discovery of TFC/TFE workspaces, variables, and variable sets
- 1:1 replication of project structure, workspace settings, and variables
- Terraform Cloud state migration to the env zero remote backend
- Controlled cutover with TFC workspace locking and env zero environment unlocking
- Gradual migration: migrate a few workspaces at a time and return later to continue with the rest
What is not migrated automatically
The wizard focuses on workspaces, variables, state, and VCS configuration. The following TFC/TFE entities are not migrated and need to be recreated manually in env zero after migration:- Private module registry - re-publish modules in the env zero module registry
- Policies (Sentinel / OPA) - recreate as env zero custom flows or policy rules
- Run triggers and workspace dependencies - configure workflow triggers in env zero
- Team permissions and RBAC - configure SSO/SAML integration in env zero to manage identity and access. This avoids migrating individual TFC team permissions and ensures your identity provider remains the single source of truth for access control
- Notification configurations - configure notifications in env zero
- SSH keys - add SSH keys to env zero as needed
Prerequisites
env zero access:- Admin role or Edit Organization Settings permission
- A TFC/TFE user or team API token with read permissions and workspace lock/release permissions
Before you start
Review these before launching the wizard to avoid surprises mid-migration. Self-hosted VCS (GitHub Enterprise, GitLab self-managed, Bitbucket Data Center) If your workspaces reference repositories on a self-hosted git server, env zero requires a self-hosted agent to reach it. One agent is needed per VCS instance — if you have two Bitbucket Data Center instances, you need two agents. Set these up before migrating workspaces that use self-hosted VCS. Private Terraform modules sourced via git Workspaces that pull modules usingssh:// URLs need an SSH key attached to the environment in env zero. Workspaces using https:// module URLs need a git token configured via a custom flow. Deployments will fail after migration if these credentials are not in place before the first run.
.tfvars files for variable configuration
If your workspaces use a .tfvars file to supply variable values rather than TFC workspace variables, set the ENV0_TERRAFORM_CONFIG_FILE_PATH environment variable on the migrated environment to point env zero at the correct file. See Custom Terraform Variables File for details.
How concepts map between TFC and env zero
| TFC/TFE concept | env zero concept |
|---|---|
| Project | Project |
| Workspace | Environment |
| Workspace variables | Environment variables |
| Variable sets | Configuration sets |
| VCS settings | Template VCS settings |
| Remote backend state | env zero remote backend |
Migration flow
The wizard guides you through five steps:- Connect - enter your TFC organization name and API token
- Select Scope - choose which workspaces to migrate
- Resolve - provide missing secrets and configure VCS connections
- Review - review your selection and create environments in env zero
- Go Live - lock TFC workspaces and activate env zero environments
Your TFC workspaces are never modified or deleted during the migration. They remain fully operational until you explicitly go live.
Getting started
Navigate to Organization Settings > Migration to launch the wizard, then click Start Migration.If you have an active migration session, a TFC Migration widget appears on your homepage with a Resume Migration button.
Pages in this guide
Next steps
- Managing Environments - Understand how TFC workspaces become env zero environments.