Workspace Settings
Learn about workspace settings and the information in your workspace tabs.
Your workspace links your infrastructure code with the resources you provision. This document covers each tab within your workspace, so you can manage resources, configurations, and integrations effectively.
Before you begin
A created workspace. Go to Create/clone a workspace to create one.
Workspace tabs
Each tab exposes a different part of your workspace. The sections below explain the data, settings, and usage for each one.
Insights
The Insights tab consolidates the actionable findings for a workspace, including resources that have drifted from your configuration and, when Cloud Cost Management is connected, cost optimization opportunities. From each insight, you can start a fix with the IaCM Remediation Agent. Go to Insights to review the tab, and IaCM Remediation Agent to remediate drift.
Resources
The Resources tab surfaces infrastructure state from OpenTofu/Terraform in a structured and readable format. It lists all managed resources, referenced data sources, and exposed outputs defined in your workspace configuration.
This tab includes three subtabs:
Resources: Infrastructure components actively provisioned and managed by OpenTofu/Terraform.
Data Sources: External values fetched at runtime (for example, existing VPCs, AMIs). These are now extracted from the state file for easier visibility.
Outputs: Values exposed by your modules, typically used to pass data between pipeline stages or systems.
Use this tab to validate state, inspect dependencies, and troubleshoot issues, without digging through raw state files.
Variables and connectors
The Variables and Connectors tab lets you define the inputs and integrations required to run your IaCM workspace pipelines. These settings apply to operations such as init, plan, apply, or drift detection.
Connectors
Connectors allow your workspace to authenticate with cloud providers, Git repositories, or other external systems. For example, a Git connector may be required to fetch variable files, or a cloud connector (like aws-oidc) may be needed for provisioning infrastructure.
You can add connectors at the Account, Project, or Organization level.
Variables
Variables are used to inject configuration values into your infrastructure code. You can define:
Environment variables for shell-level runtime config (for example,
TF_LOG,ENVIRONMENT)OpenTofu/Terraform variables that map to
variable {}blocks in your.tffilesVariable files (
.tfvars,.json, or.yaml) stored in Git and referenced at runtime
These values can be statically defined, prompted at runtime with <+input>, or injected from pipeline variables.
Activity history
The Activity History tab logs actions performed within the workspace, such as 'plan' and 'apply' steps executed via pipelines.
Usage: Use this tab to track the success or failure of specific actions, aiding in troubleshooting and auditing.
State
The State tab provides access to your complete infrastructure state file, offering critical insights into your current configuration and dependencies of your resources.
Usage: Use this tab to conduct audits and maintain consistency across your infrastructure setup, ensuring alignment with your desired state.
State versions: The State tab lists previous versions of your state file. Every run that stores state adds a new version, and all historical versions are retained.
State rollback: From the State tab, you can roll back to any previous state version. Harness restores the selected version as a new version without modifying your cloud infrastructure. Go to Roll back workspace state to restore a previous version.
Go to Provision workspace for detailed instructions on managing your infrastructure state.
Configuration
Derived from the initial setup steps of your workspace, including cost estimation settings, and default pipelines.
Usage: Provides a quick overview of your workspace's configuration, allowing for easy edits and updates.
Advanced options
Workspaces configuration advanced options offer the ability to configure additional settings for your workspace, including:
Submodules: Use submodules from your repository's
modules/folder. Go to View Module Registry Details to configure them.Sparse checkout: Provide paths to directories to do a sparse checkout on given patterns to clone specific directories from the repository. Sparse checkout patterns apply to both module source directories and any referenced
.tfvarsvariable files, so include the paths for every variable file your workspace consumes in addition to the module paths. Go to Git sparse-checkout documentation for the pattern syntax.
CLI integration
This tab provides guidance on integrating the OpenTofu/Terraform CLI with Harness as a backend.
Usage: It offers step-by-step instructions for setting up CLI integration, facilitating seamless management of your infrastructure code.
Go to CLI Integration Guide for step-by-step instructions on CLI integration.
FAQs
Last updated
Was this helpful?