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,232
Company Posts That Month
18
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Terraform Cloud/Enterprise provider allows coordination of apply and destroy commands on downstream workspaces in Terraform Cloud, enabling the creation of complex workflows with multiple interdependent workspaces. This is achieved using the `tfe_workspace_run` resource, which can be configured to fire-and-forget or wait for completion, allowing for conditional applies and destroys. The resource provides more fine-grained control over workspace dependencies, enabling the creation of a web of dependencies between workspaces. By introducing a separate workspace runner, concurrency issues are avoided, making it easier to manage complex workflows. This pattern is useful when creating new workspaces or managing existing ones with multiple dependencies, and can be used in conjunction with run triggers for simpler use cases. The `tfe_workspace_run` resource is now an official part of the Terraform Cloud/Enterprise provider and is being improved by HashiCorp based on user feedback.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Kubernetes 2 3,288 253 67 +116%
Secrets Management 2 1,337 217 54 +8%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.