Run tasks can now be accessed from the HashiCorp Terraform Registry, helping developers discover run tasks they can integrate with their existing Terraform workflow.
HashiCorp Terraform Cloud Run Tasks let you directly integrate third-party tools and services into Terraform runs. Each run task in a workspace sends information to an external service at a specific run stage. The external service processes the information and then sends the appropriate status back to Terraform Cloud. Depending on the workspace’s configuration, failed run tasks can stop runs and prevent Terraform from provisioning infrastructure, or flag them for review.
The Terraform Registry is an open repository where users can share and discover providers, policies, and modules to use in their Terraform code. We’ve now added run tasks as another component that users can share and discover in the Terraform Registry.
With the addition of run tasks, Terraform Cloud users can take advantage of reusable, tested third-party integrations that can provide cost estimation, security monitoring, compliance checks, drift detection, no-code provisioning, and more within your Terraform deployment pipelines.
You can find run tasks under the policy category in the Terraform Registry:
This post looks at some of the use cases and requirements for run tasks.
You can use run task integrations to enhance your Terraform workflows in many ways, including:
For full use case examples with instructions, visit our run tasks integration guides.
For a hands-on learning experience with run tasks, check out the HCP Packer validation run task. This run task checks the image artifacts within a Terraform configuration and blocks provisioning if the configuration references images that are revoked.
To get started with run tasks, you need a HashiCorp Terraform Cloud account at the Team & Governance or Business tiers, or a Terraform Enterprise license.
If you’re interested in trying out run tasks, Terraform Cloud offers free trials for paid tiers. Let’s talk if you might be interested in purchasing Terraform Cloud.
HashiCorp certification holders can now renew their certifications.
The Terraform integrations ecosystem has reached a new milestone, surpassing 3,000 providers in the registry.
Infrastructure producers and consumers require very different capabilities from their automation tools. Vendors need to provide a flexible infrastructure as code solution that meets users at their different levels of expertise.