cloudsand-hcp).

Create a new Project
To create a project:- In the top-left navigation choose Projects.
- Click New Project.
- Provide a name (for this demo:
hcp-demo) and an optional description. - Save the project.


Project settings and defaults
Project settings define behavior that applies by default to any workspace associated with the project. The most important settings include:- Execution Mode — choose the default run mode for workspaces in this project:
- Organization Default
- Remote (Terraform Cloud)
- Local
- Agent
- Team access — control which teams can view or modify project workspaces.
- Variable sets — apply shared variables across all project workspaces.
- Auto-destroy Workspaces — schedule automatic
terraform destroyruns for ephemeral environments or demos.

terraform destroy after a configured interval so test environments don’t linger.

How to move existing workspaces into a project
There are two common methods to add a workspace to a project:
Permissions: moving workspaces requires appropriate organization/workspace permissions.
After you move workspaces, the project’s Workspaces list will show them (for example,
web-prod and networking-prod).
Using Terraform CLI with Terraform Cloud projects
If you run Terraform locally but want the configuration to use Terraform Cloud, the typical workflow is:- Authenticate to Terraform Cloud:
- Configure your local HCL to target the organization and workspace:
- Initialize and run Terraform:
If you manage multiple environments, consider naming conventions for projects and workspaces (for example,
project-name-env) and use variable sets and team access to enforce policy and reduce configuration drift.Deleting a Project
To delete a project: Settings → General → Delete Project. Terraform Cloud prevents deletion if the project still contains workspaces — you must move or remove them first.Before deleting a project, ensure all associated workspaces have been removed or reassigned. Terraform Cloud will not allow deletion of a project that still contains workspaces.
Summary
You now know how to:- Create a Terraform Cloud project and set defaults (Execution Mode, variable sets, team access).
- Configure Auto-destroy for ephemeral environments.
- Move workspaces into a project via the Workspaces list or workspace settings.
- Use Terraform CLI with Terraform Cloud-targeted configurations.
- Terraform Cloud Documentation
- Terraform CLI:
terraform login,terraform init,terraform apply