terraform-provider-stackgen

sg_remediation_pattern (Resource)

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

Manages a remediation pattern — a reusable template for incident remediation with risk controls.

Set approve to true to promote draft or deprecated versions to approved after apply (Guild only allows one approved version per pattern; approving deprecates the previously approved one), matching sg_workflow.

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

Example Usage

resource "sg_remediation_pattern" "example" {
  name       = "restart-stuck-workers"
  risk_level = "medium"

  description       = "Rolling restart of worker pods when queue depth is high."
  blast_radius      = "single-namespace"
  requires_approval = false
}

Import

Import an existing sg_remediation_pattern using its name:

terraform import sg_remediation_pattern.example 'restart-service'

Schema

Required

Optional

Read-Only