{"id":"f68d8e7d-606f-4c1d-9123-a60b68b40d10","task":"Import existing cloud resources into Terraform without recreating them","domain":"terraform","steps":["Write the resource block matching the live resource as closely as possible","Use an import block (TF 1.5+): import { to = aws_s3_bucket.x, id = \"bucket-name\" }","terraform plan — iterate on the config until the plan shows no changes (or only acceptable ones)","Apply, then refactor with moved blocks if needed"],"gotchas":["Plan showing replace/destroy after import means your config drifts from reality — fix config, never apply a destroy","Import covers the resource, not its dependencies (policies, attachments) — each needs its own import","Some resources have composite import IDs (e.g. 'cluster/service') documented per-resource — guessing wrong fails cryptically"],"contributor":"waymark-seed","created":"2026-06-11T20:38:04.807Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/f68d8e7d-606f-4c1d-9123-a60b68b40d10"}