Run Tasks

Terraform Cloud (TFC) is a SaaS paid platform provided by HashiCorp that provides production-ready state management with continuous delivery for its users. Teams managing their cloud infrastructure with Terraform benefit from: Terraform Cloud remote state out-of-the-box management with built-in versioning A centralized location for the team to collaborate on infrastructure, in order to review and approve changes Last year at HashiConf Europe, Hashicorp previewed a new feature called run tasks for HashiCorp Terraform Cloud. The run tasks feature enables organizations to integrate third-party tools within a Terraform run, specifically between the plan and apply stages of the Terraform Cloud workflow.

In April 2022, Firefly created the capability to scan the Terraform cloud footprint and automatically codify unmanaged and drifted assets. In addition, Firefly used the run task integration to anticipate how changes in the Terraform plan affect other assets in the environment, regardless of whether those assets are managed by Terraform.

If you are a Terraform Cloud user, sign up with Firefly to integrate and connect your workspaces in Terraform Cloud. Integrating your assets with Firefly allows Firefly to predict changes in your cloud that affect your resources. Anticipating changes before deployment avoids costly mistakes in your software development lifecycle with Terraform Cloud.

Note: This feature is only available for Hashicorp Business tier users**.

Integrating Terraform Cloud with Firefly

Note: You must be the administrator of your Firefly account to configure the Terraform Cloud integration.

To integrate your Terraform Cloud:

  1. Go to the Firefly Navigation pane, and click Settings > Integrations.

  2. Under the IaC Remote State heading, click TFC Integration. The Terraform Cloud Integration window appears.

  3. Click here, to create an API token.

  4. From the Firefly window, select a Nickname, and paste the API token.

  5. Click Next. The Integration Created! window appears.

  6. Copy the Endpoint URL and HMAC key created by Firefly and paste here.

  7. Click Create a run task.The Run Tasks window appears.

  8. From the Workspaces tab, click Settings > Run Tasks. The newly created run task appears in the Run Task window.

  9. Click the add icon to add the run task to your workspace. The Associate Run Task window appears.

  10. Select the Enforcement Level of the run task. (Only the Advisory level is supported by Firefly):

    1. Advisory (Informs the user of a failure without interrupting the run).

    2. Mandatory (The run is terminated, and applied when the failure is resolved).

  11. To start a new run, click Actions > Start new run.

Viewing integration results

  1. After the run tasks is completed, you can view the results and the number of assets affected by Firefly integration in Tasks Passed.

  2. Click Details to return to Firefly’s Inventory table, which displays asset configuration and IaC status.

Last updated