Your First Run
This walks you from a fresh Terrakube to a finished, applied run in about ten minutes. It uses a public sample repository that creates only harmless null, time and random resources, so no cloud credentials are needed.
You need a running Terrakube (Docker Compose or Minikube) and a user in the administrator group. In the sandboxes that is admin@example.com with password admin.
1. Create an organization
An organization holds your teams, workspaces, registry and settings. Open Organizations → Create organization, enter a name and a description, and create it.

Organization names can contain only letters and numbers (no spaces or hyphens). Only members of the administrator group can create organizations; see Security.
2. Create a team
Terrakube gives access to teams, which match groups from your identity provider. Until a team exists you cannot create workspaces. After creating the organization you land on Teams: create one named exactly like your group, for example TERRAKUBE_ADMIN, with the Admin role.

The name must match the group name in your identity provider (case sensitive) because that is how Terrakube knows who belongs to the team. See Team Management for roles and custom permissions.
3. Create a workspace
A workspace is one Terraform configuration with its variables, state and runs. Open Workspaces → New workspace and answer the wizard:
Choose IaC type: Terraform.
Choose type: Version control workflow.
Connect to VCS: choose Git. This takes any
httpsorsshrepository URL, so you do not need a VCS provider for a public repository. (To get automatic runs on every push, connect a VCS provider later.)Choose a repository: paste
https://github.com/terrakube-io/terrakube-docker-compose.git.

Configure settings: keep the workspace name or choose your own, set the VCS branch to
main(it is required), keep the working directory/, and set Default Template to Plan and Apply. Then create the workspace.

The new workspace has no runs yet. See Creating Workspaces for the CLI-driven and API-driven workflows.
4. Start a run
Click Run now, keep the template Plan and apply, and click Start run.

The run opens. Terrakube clones the repository, runs terraform init and plan, then applies. The Structured view shows each resource Terraform will change; Console shows the raw output.

The first run downloads Terraform and the providers, so it takes a little longer than later runs. With the Plan and apply template the apply happens straight after the plan; use a template with an approval step when you want a person to review the plan first, as described in Starting a Run.
5. See the result
Back on the workspace Overview you can see the run, the resources Terraform created, and the outputs. States lists every version of the state, each linked to the run that produced it.

Where to go next
Pass values to Terraform
Run automatically on every push or pull request
Require approval, or enforce policy
Use my own cloud account safely
Run from the Terraform CLI or CI
Chain workspaces
Understand what just happened
Last updated
Was this helpful?