Navigating to a Sub Project
Projects Page
The Organizationโs Projects Page shows Projects that donโt have a parent. Clicking on the _ Project_ will make it the Active Project and will bring it to its own Sub Projects page if there are any, or to its Environments page. When clicking on another Sub Project the same rules apply - if there are more Sub Projects youโll be able to navigate into them and when there are no more Sub Projects the environments are shownProjects Menu
The menu shows only Projects without a Parent Project. Projects containing Sub Projects will have an arrow next to them. Hovering on the project will show you its Sub Projects. That way you can use the projects menu to access any project in your organization

Creating a Sub Project
To create a subproject, hover over the desired project in the left navigation panel and press the plus icon.
RBAC for Sub Projects
Each Sub Project inherits the Roles from its parent Project up to the root Project. If a user doesnโt have the โView Projectโ permission to view for a parent Project, but does have it on the Sub Project, the user may navigate the project using the menu items, with hovering over the ancestor Projects until the relevant project appears in the menu. Users are not allowed to click and navigate to any project they lack the โView Projectโ permission for.Associated Credentials and Templates, Policies, and configured Notifications only affect the Project in which they are configured, and not affecting any Sub Project under said Project. As for Costs, each Project takes into account its own Environments only, without any Environment in its Sub Projects.
Unlike the above, Variables are inherited from Parent Projects to Sub Projects.
Environment migration from (sub) project to (sub) project
When using env zero local backend, migrating from 1 (sub) project to another (sub) project is not supported. When using env zero remote backend, migrating from 1 (sub) project to another (sub) project requires the following procedure to be followed:- On a local machine:
- Log into env zero backend โterraform login backend.api.env0.comโ
- Add the env zero remote backend code to the resource:
- Ensuring there are no โ.terraformโ files or folders in the directory
- Run โterraform initโ
- Run โterraform planโ to ensure no changes are seen in the correct environment
- Run โterraform state pull > state2migrate.tfstateโ
- Confirm the state2migrate.tfstate file has been populated.
- Update the project ID and workspace name in the code above. If a SubProject is being used, replace the Project ID with the SubProject ID (i.e. [Org ID].[SubProject ID]
- Remove the โ.terraformโ files and folders.
- In env zero:
- Navigate to the new (sub) project location
- Create a new environment running from the same VCS code with the same terraform and environmental variables.
** Ensure auto-approval is turned off.
** Enable โUse env0 Remote Backendโ - Cancel the deployment at the โapprove planโ stage as to not recreate the resources.
- On the local machine:
- Run โterraform initโ
- Run โterraform state push state2migrate.tfstateโ
- Run โterraform planโ to ensure no changes are seen in the correct environment
- In env zero:
- Redeploy the new environment and approve as no changes should be seen.
- Make the old environment inactive.
- (Optional) All local โ.terraformโ files and the remote backend configuration can be removed from the local machine.
Moving Sub-Projects
Going into the project you want to move in the Project Settings of the page you can find a Move button
