Docs

Workspaces

Organize infrastructure by environment and keep uploads consistent.

Workspaces let you separate environments like dev, staging, and prod. Cora uses workspace names to organize diagrams and history.

How workspaces are selected

When you upload state, Cora determines the workspace in this order:

  1. X-Cora-Workspace header
  2. ?workspace=<name> query parameter
  3. workspace field in the JSON payload
  4. Terraform state workspace metadata
  5. Default workspace

Use a consistent naming scheme so diagrams stay easy to scan.

Examples:

  • networking-prod
  • app-staging
  • platform-dev

Example upload

bash
terraform state pull | cora upload --workspace networking-prod

Next steps