Terraform Hcl Authoring Pitfalls

Use when Terraform or OpenTofu HCL is written or reviewed for policies, templates, repeated blocks, lifecycle settings or deployment: jsonencode, yamlencode and policy-document data sources instead of heredocs, templatefile, dynamic blocks and the optional-block form, separate security-group rule resources versus inline rules, prevent_destroy and where it lives, create_before_destroy and unique names, ignore_changes scope, replace_triggered_by, provisioners and baked images, and image tags.

techmefr Updated

File contents

techmefr/mentis commit 93929f07a9

Frequently asked questions

npx get-skill add techmefr/terraform-hcl-authoring-pitfalls