Terraform
Avoid common Terraform mistakes — state corruption, count vs for_each, lifecycle traps, and dependency ordering.
New
Join 0+ developers using this skill
skill
DevOps & Deployment
advanced
Avoid common Terraform mistakes — state corruption, count vs for_each, lifecycle traps, and dependency ordering.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
terraform state mv, rm, importcount uses index — removing item 0 shifts all indices, forces recreationfor_each uses keys — stable, removing one doesn't affect othersfor_each requires set or map — toset() to convert listprevent_destroy = true — blocks accidental deletion, must be removed to destroycreate_before_destroy = true — new resource created before old destroyed, for zero downtimeignore_changes for external modifications — ignore_changes = [tags] ignores driftreplace_triggered_by to force recreation — when dependency changesaws_instance.foo.id creates automatic dependencydepends_on for hidden dependencies — when reference isn't in configdepends_on accepts list — depends_on = [aws_iam_role.x, aws_iam_policy.y]depends_on if implicit dependency not clear — or plan failssource = "org/name/aws?version=1.2.3"terraform init -upgrade to update — doesn't auto-updatetype = string, list(string), map(object({...}))sensitive = true hides from output — but still in state filevalidation block for constraints — custom error messagenullable = false to reject null — default is nullableterraform destroy is permanent — no undo, use -target carefullymoved block or terraform state mvterraform import aws_instance.foo i-1234 — imports existing resource to stateimport block (TF 1.5+) — declarative import in configNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.