Track every Terraform run in Slack and a spreadsheet

By General Input

Automatically announce every new Terraform run in your deploys channel and log it to a spreadsheet, so anyone can see what changed and when.

Integrations

  • HCP Terraform (Terraform Cloud)
  • Slack Bot
  • Google Sheets

Type

Deterministic Code

Categories

  • Engineering
  • Operations

Whenever a new run is queued on one of my HCP Terraform (Terraform Cloud) workspaces, keep a running audit trail of the infrastructure change. Use the poll trigger for a new run on a workspace so this workflow fires each time a run is queued.

For each new run, read the run with the HCP Terraform Show Run action to pull the details I care about: the workspace name, the run id, what kicked off the run (the trigger source or who created it), the run message, the timestamp it was created, and a link to the run in HCP Terraform.

Then do two deterministic things. First, post a short announcement to our deploys channel using the Slack Bot Send a Message action. Keep it brief and fixed: the workspace name, the run message, what triggered it, and the link to the run.

Second, append one row to a Google Sheet using the Append Values action. Log the workspace name, run id, trigger source, run message, and a link to the run, one field per column, in the same order every time.

Keep the format fixed at exactly one row per run with no interpretation or summarization. The goal is a clean, searchable change history that non-engineers can read, not a summary.

Related prompts

Explore more prompts
Call overdue Xero customers with an AI collections agentLocal listing health board for every location you manageLet support send one-off Loops emails without an engineerA brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensStop cold emails to anyone with a live deal in PipedriveLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasoniMessage campaign console with pre-flight checks and delivery board