DEVOPS

Datadog Infra-Change Event to Auto-Filed Linear Drift Ticket

Triggers on a Datadog event signaling an out-of-band infrastructure change, confirms the resource drifted from Terraform state.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDatadog infra-change eventDatadogDatadog
  • ActionExtract affected resource from payloadDatadogDatadog
  • ActionTargeted terraform plan to confirm driftShell
  • LogicEnd if state still matches
  • OutputFile owner-assigned Linear ticketLinearLinear

What it does

When Datadog emits an infrastructure-change event (a security group edited in console, an instance type swapped, a tag stripped), this workflow cross-checks the affected resource against committed Terraform state, and if it truly drifted, files a Linear issue with the diff and a suggested reconciliation path, assigned to the resource's owning team.

When to use it

Use it when Datadog already captures cloud change events and you want every confirmed drift to become a tracked, owned work item instead of a forgotten alert. Ideal for teams that reconcile drift in sprints rather than reverting on sight.

How it works

  1. 1A Datadog event trigger fires on the infrastructure-change monitor.
  2. 2An action pulls the affected resource address from the event payload.
  3. 3A shell action runs a targeted `terraform plan` on that resource to confirm real drift.
  4. 4A logic step ends the run if state still matches (event was a no-op or already reconciled).
  5. 5An action resolves the owning team from resource tags.
  6. 6An output step creates a Linear ticket with the diff, owner assignment, and reconcile-or-import guidance.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect DatadogMetrics, traces, log search.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect LinearIssues, projects, cycles, triage.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.