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.
AWS re:Invent 2022 is here. We highlighted what’s new with Terraform and AWS — like Launch Day support for new AWS services in the Terraform AWS Provider.
The HashiCorp Terraform AWS provider has surpassed one billion downloads — here’s how we got there, and what to look for next.
Cloud Development Kit for Terraform (CDKTF) 0.14 makes it easier to add and upgrade Terraform providers.