Default pipelines
IaCM Default Pipelines simplify the process of provisioning, destroying, and managing infrastructure workspaces by providing quick access to your pre-configured pipelines. These pipelines can be created in the normal fashion, assigned as defaults at the project level and triggered within any of that project's workspaces. This provides a much more streamlined experience and helps to ensure consistency across all of your workspaces.
In addition, as some workspaces may require specialized pipelines, you can overwrite the defaults at the workspace level. This will not disrupt any other workspace using the project level defaults.
A pipeline containing the destroy
command will remove all saved infrastructure managed by your Harness workspace.
Prerequisites
- You have created pipelines to Provision, Plan, Destroy and Check for drift to be assigned as defaults.
Configure and run default pipelines
- Interactive guide
- Step-by-step
Set your project-level default pipelines
- In your IaCM module, select Project settings, then select IaCM Defaults.
- Select the appropriate pipelines for your default categories and frameworks (OpenTofu / Terraform):
- Plan: Pipeline for running the plan only.
- Provision: Pipeline for initializing, planning, approving, and applying changes.
- Detect Drift: Pipeline for detecting drift between your configuration and provider state.
- Destroy: Pipeline for initializing, planning, approving, and destroying infrastructure.
Review your default pipelines in your workspace
- Select Workspaces, then select one of your workspaces to run your default pipelines.
- Select the Configuration tab and scroll down to Default pipelines to inspect or override your default pipelines at the selected workspace-level (this will not effect your project level settings).
Run your default pipelines in your workspace
- While in your workspace, run your default pipelines against it with the
Plan
,Provision
andCheck for Drift
buttons.
To prevent accidental execution, the Destroy pipeline is in your workspace’s Configuration tab, under Danger Zone.
To run it, select Destroy workspace.
Review previously run pipelines by selecting your workspace and reviewing the Execution History tab.