terraform-provider-stackgen

sg_evidence_checklist (Resource)

⚠️ Experimental — This resource is part of the Guild platform and may change in future releases.

Manages an evidence checklist — required and optional evidence items, scoring rules, and metadata used as proof of work for investigations and remediation.

Attach a checklist to a whole workflow using sg_workflow.evidence_checklist_ref (workflow-scoped, not per-stage).

Create-time 409 adoption is controlled by the provider attribute adopt_on_conflict (default true).

Example Usage

resource "sg_evidence_checklist" "example" {
  name        = "post-incident-review"
  description = "Artifacts required before closing a Sev-1 incident."

  required_items = [
    "timeline_reconstructed",
    "blast_radius_documented",
  ]
  optional_items = ["customer_comms_log"]

  scoring {
    min_required         = 2
    confidence_threshold = 0.8
  }

  metadata = {
    team = "sre"
  }

  # Set true to call POST .../versions/{v}/approve after create/update (same pattern as sg_workflow.approve).
  approve = false
}

# Use this checklist as workflow-wide proof-of-work (entire playbook, all stages):
# resource "sg_workflow" "with_evidence" {
#   ...
#   evidence_checklist_ref = sg_evidence_checklist.example.name
# }

Import

Import an existing sg_evidence_checklist using its name:

terraform import sg_evidence_checklist.example 'verify-deployment'

Schema

Required

Optional

Read-Only

Nested Schema for scoring

Optional: