Workspaces
Workspaces are where you manage your infrastructure configurations and their associated resources.

What is a Workspace?
A workspace in InfraDots Platform represents a single infrastructure configuration. Each workspace:
- Has its own Terraform state
- Contains its own variables
- Can be connected to a specific branch in your version control system
- Tracks the history of infrastructure changes
Managing Workspaces
Creating a Workspace
- Navigate to your organization
- Click "Create Workspace"
- Enter a name and description
- Connect to your version control system (optional)
- Specify the source repository and branch
- Select the Terraform version
- Configure additional settings like execution mode and auto-apply
- Click "Create Workspace"
Workspace Settings
- General: Update name, description, and other basic settings
- Version Control: Connect to GitHub, GitLab, or other VCS providers
- Execution Mode: Choose between remote or local execution
- Terraform Version: Select the version of Terraform to use
- Auto Apply: Enable to automatically apply changes after a successful plan
- Worker Pool: Assign a specific worker pool for job execution
- Supersede Queued Runs: Cancel a branch's earlier runs when a newer commit arrives (see Run order)
- Tags: Add key-value pairs to organize and filter your workspaces, and to group them under Attribution
Workspace Operations
- Plan: Preview changes before applying them
- Apply: Apply the proposed changes to your infrastructure
- Destroy: Remove all resources managed by this workspace
- Lock/Unlock: Prevent concurrent operations on the workspace. While it is locked, no run starts on it. Lock and
unlock it with the Lock / Unlock button in the workspace header, or the API's
POST /api/organizations/{org}/workspaces/{name}/lock/and.../unlock/. Nothing else changes the lock: saving the workspace's settings or applying the Terraform provider'sinfradots_workspaceleaves it as it is.
Run order
Runs on the same branch execute in the order they were triggered. A run waits while an earlier run on that branch is still being prepared or is still executing, and the run page names the run it is waiting for. Runs on different branches are independent: a pull request's run does not wait for the workspace's own branch, or for another pull request's.
An approved apply goes ahead of runs that are still waiting. It is the second half of a plan that already ran, so it finishes before a new plan starts.
Superseding earlier runs
Pushing several commits to a branch in quick succession queues a run for each of them. Turn on Supersede queued runs and a new commit on any branch other than the workspace's own cancels that branch's earlier runs, so only the newest commit is planned. It is off by default, set for the organization, and each workspace can override it.
Three things are never superseded:
- the workspace's own branch — every commit there has to be applied, so dropping one skips a change rather than saving a run;
- an apply that is waiting for approval, or that someone has already approved;
- a run someone started by hand, from the app or the CLI.
Targeted apply
By default every run plans the whole workspace, so anything that drifted or was never applied goes out with your commit. Turn on Targeted apply in the workspace's settings and a push or pull request plans, and applies, only the resources it changes.
InfraDots compares the commit with the last one this workspace applied, so a change whose apply failed or was discarded is still included next time. A pull request is compared with the point it branched from. Each changed block or file is followed to the resources that read it:
- a changed resource, data source or module call, and every resource that reads it;
- a changed
localsentry or variable default, and every resource that reads it; - a key in
terraform.tfvarsor a*.auto.tfvarsfile, through the variable it sets; - a file read with
file(),templatefile(),yamldecode(file(...))or a directory such as anarchive_filesource_dir, through the blocks that name its path; - any change in a local module (
source = "./modules/..."), as the module call.
users.yaml + - name: bobchanged fileread by
local.users = yamldecode(file("users.yaml"))localsread by
aws_iam_user.thistargetreads it — a plain -target leaves it out
aws_iam_user_login_profile.thistarget
Full plan
Every resource in the workspace: drift, changes never applied, and yours.
Targeted plan
-target=aws_iam_user.this
-target=aws_iam_user_login_profile.this
The run page and the pull request's plan comment say how many resources the plan targets. A change nothing reads, such as a README, completes with no changes. The plan log lists any address that is no longer in the configuration or the state; it is skipped.
These plan the whole workspace, and the run says why:
- a changed
provider,terraform,moved,import,removedorcheckblock, or a rootoutput; - a changed
.terraform.lock.hcl,.tf.jsonor.tofufile, or an override file; - a changed file that no block names, when something reads a path built only from variables, such as
file(var.path); - the workspace's first apply, or a history rewritten by a force push;
- more than 100 targeted resources;
- runs started by hand, by a schedule, by the CLI, by drift detection or by another workspace, and destroy or refresh runs.
Targeting needs agents, drift detection and drift remediation on for the workspace, and InfraDots refuses to turn it on otherwise. Drift detection's nightly full plan finds what a targeted run left out. That includes a variable you changed in InfraDots: no commit changed, so only a full plan applies it. Targeted apply is not available for Terragrunt workspaces. On a self-hosted runner, the executor must be version 1.20.0 or later. An older executor fails a targeted run rather than planning the whole workspace.
Pre-plan checks
Three checks can run after init and before the plan, in this order:
- validate runs
terraform validateortofu validate. - tflint lints the configuration, with the
aws,googleandazurermrulesets you pick. A.tflint.hclin the repository is kept, and the rulesets are added to it. - checkov scans the configuration for security and compliance problems, such as a security group
that opens SSH to
0.0.0.0/0or an unencrypted bucket.
Each one is Off, Advisory or Blocking. Advisory shows the check's output as its own stage
on the run page and goes on to the plan; Blocking fails the run when the check fails, and no plan
runs. All three are off by default. Set them for the organization in the API
(validate_mode, tflint_mode, tflint_plugins, checkov_mode), and override them per workspace
under Settings → General or with the same attributes on the Terraform provider's
infradots_workspace. Read a check's output from the CLI with idp job output <job-id> --stage checkov.
To check what the plan will change rather than the code, use Plan Policies.
checkov runs checkov -d . --framework terraform in the workspace's working directory, offline: it
sends nothing to Prisma Cloud and does not check for updates. Modules init downloaded into
.terraform are not scanned. Its default rules are strict, so start in Advisory and tune them in the
repository:
# .checkov.yaml, next to the configuration
skip-check:
- CKV_AWS_18 # access logging
- CKV2_AWS_61 # lifecycle configuration
or skip one check on one resource with a comment inside its block:
#checkov:skip=CKV_AWS_144:replication is handled by the backup account.
The executor image includes tflint and checkov. An executor installed without the image skips a check
whose tool is not on PATH and says so in the run, rather than failing it. On a
self-hosted runner, checkov needs executor 1.21.0 or later; an older one
ignores the setting.
Variables
Variables allow you to customize your infrastructure configurations without changing the code.
Types of Variables
InfraDots Platform supports two types of variables:
- Terraform Variables: Used as input variables in your Terraform configurations
- Environment Variables: Set as environment variables during Terraform execution
For example, if your Terraform configuration expects these variables:
variable "region" {
type = string
default = "us-east-1"
}
variable "instance_type" {
type = string
default = "t3.micro"
}
You can set them in InfraDots as Terraform variables with keys region and instance_type. Environment variables like AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are set as Environment type variables and marked as sensitive.
Variable Scopes
Variables can be defined at two levels:
- Organization Variables: Applied to all workspaces in the organization
- Workspace Variables: Applied only to a specific workspace (override organization variables with the same name)
Managing Variables
Creating Variables
- Navigate to your organization or workspace
- Click "Variables"
- Click "Add Variable"
- Enter the key and value
- Select the category (Terraform or Environment)
- Toggle "Sensitive" if the value contains sensitive information
- Toggle "HCL" if the value should be parsed as HashiCorp Configuration Language
- Add an optional description
- Click "Save"
Editing Variables
- Navigate to the variables page
- Find the variable you want to edit
- Click the edit icon
- Update the value or settings
- Click "Save"
Deleting Variables
- Navigate to the variables page
- Find the variable you want to delete
- Click the delete icon
- Confirm the deletion
📝 Note
[!note] Organization variables act as defaults. If a workspace defines a variable with the same key, the workspace value takes precedence.
Schedules
Schedules allow you to automate infrastructure operations on a recurring basis.
What are Schedules?
Schedules in InfraDots Platform let you automatically run operations like plan, apply, or refresh at specified times. This is useful for:
- Regular infrastructure updates
- Scheduled maintenance windows
- Periodic state refreshes
- Nightly builds or deployments
Managing Schedules
Creating a Schedule
- Navigate to your workspace
- Click "Schedules"
- Click "Add Schedule"
- Select the operation type (Plan, Apply, Destroy, or Refresh)
- Configure the schedule using cron syntax or the schedule builder
- Enable or disable the schedule
- Click "Save"
Schedule Types
- Plan Only: Generate a plan without applying changes
- Plan and Apply: Generate a plan and apply changes if successful
- Destroy: Plan to destroy resources
- Refresh: Refresh state only
Editing Schedules
- Navigate to the schedules page
- Find the schedule you want to edit
- Click the edit icon
- Update the settings
- Click "Save"
Enabling/Disabling Schedules
- Navigate to the schedules page
- Find the schedule you want to enable/disable
- Toggle the enable/disable switch
Deleting Schedules
- Navigate to the schedules page
- Find the schedule you want to delete
- Click the delete icon
- Confirm the deletion
Version updates
Insights → Updates lists the workspaces whose OpenTofu, Terraform or Terragrunt version has a newer release, and the modules they call that have one. Turn off Only show updates to see every workspace and module.
A workspace's version is compared with the newest stable release InfraDots offers in its version list, which refreshes daily. Terraform is offered up to 1.5.7, the last release under an open-source licence.
Modules come from the workspace's latest plan of its own branch; a pull request's plan doesn't change them. Each module from the public Terraform or OpenTofu registry is checked once a night, and gets one status:
- Needs a code change: the newest release is outside the version constraint in your configuration, such
as
6.7.3for~> 5.0. - Next run takes it: the constraint allows the newest release, which the next
initinstalls. - Current: the installed version is the newest release.
- Not checked: a module from git or a private registry, or one the registries don't know.
The installed version is read from what init installed. On a
self-hosted runner that needs executor 1.22.0 or later; with an older one
InfraDots assumes init installed the newest release the constraint allows.
The same data is in the API at GET /api/organizations/{organization}/version-updates/, for anyone who can
read the organization's workspaces.
Attribution
Insights → Attribution groups the organization's workspaces by one tag and sums their usage per value, so each team or cost centre sees its own share. Pick the tag under Group by:
- team reads the
team,ownerandsquadtags; environment readsenvironmentandenv; app readsapp,application,service,componentandproject. A workspace counts under the first of those keys that has a value. - Any other tag key your workspaces carry, such as
cost_centerordepartment, groups by that key alone.
Keys are matched case-insensitively and values are trimmed. A workspace without the tag is counted under untagged, so the groups always add up to the whole organization.
For the window you pick (7, 30 or 90 days), each group shows its applies and apply success rate, deploys per week, resources changed, drift events, managed resources and agent runs. Agent runs are reviews, implementations and remediations; drift checks are counted under drift events instead. Expand a group to see each of its workspaces. The tag and the window are kept in the page's address, so a link opens the same view.
Set the tags in the workspace's Manage Tags, when you create it, or with tags on the Terraform
provider's infradots_workspace. The same data is in the API at
GET /api/organizations/{organization}/insights/attribution/?group_by=team, for anyone who can read the
organization's jobs.
InfraDots doesn't see your cloud bill. To split cloud spend the same way, put the same keys in your
provider's default tags (default_tags on the AWS provider, default_labels on Google) and group by them
in your cloud's cost tools.
State versions
Each time Terraform or OpenTofu writes the workspace's state (an apply, an import, a state push) it adds a state version. The workspace's
States tab lists them newest first, the current one on top, ten to a page. Open one to read or download
it, or click Revert to make it the current state again.
InfraDots keeps the 20 newest state versions of each workspace and deletes older ones every night, together with their stored state files. The current version is always kept, even when a revert made an old one current. Change the number under Settings → General → State Versions to Keep; leave it empty to keep every version. A deleted state version can't be restored.
