Home / Companies / HashiCorp / Blog / Post Details
Content Deep Dive

Terraform apply as code: The multispace pattern

Blog post from HashiCorp

Post Details
Company
Date Published
Author
Lucy Davinhart
Word Count
2,669
Language
English
Hacker News Points
-
Summary

The Terraform Cloud/Enterprise provider allows for the coordination of applies and destroys on downstream workspaces, reducing operational overhead from managing multi-workspace deployments. This can be achieved through the use of run triggers or the `tfe_workspace_run` resource, which provides more control over the application and destruction processes. The `tfe_workspace_run` resource can be used in two operational modes: fire-and-forget and wait, allowing for more flexibility in managing workspace dependencies. The provider is particularly useful in cases where there are multiple workspaces with complex dependencies, as it enables the automation of these dependencies to save time and effort. Additionally, the `tfe_workspace_run` resource has been incorporated into the official Terraform Cloud/Enterprise provider, making it a supported part of the platform.