Official docs and trustworthy references for Terraform Associate (003): product docs, language/CLI, state & backends, modules/registry, providers & auth, import/replace/refresh-only, Terraform Cloud/Enterprise, policy-as-code, CI/CD, and hands-on labs.
Use this page as your launchpad. Pair it with the Syllabus, Cheatsheet, and Practice.
main.tf
, variables.tf
, outputs.tf
, modulesstate list/show/mv/rm
-replace
)required_version
, providers & modules).terraform.lock.hcl
)fmt
/validate
/plan
on PR, gated apply
; keep provider versions aligned via the lock fileinit
, fmt
, validate
, plan
, apply
, destroy
create_before_destroy
, prevent_destroy
, ignore_changes
, replace_triggered_by
for_each
, for
, dynamic
, functionsplan
to see locking in action.plan
/apply
. Practice -replace
for intentional re-create.plan -refresh-only
and decide remediation (ignore_changes
vs config update).count
-based resource to for_each
with meaningful keys; observe address stability.Keep a lab journal: for every operation, record the command(s), expected outcome, and result. Turning misses into 1–2 “rules of thumb” speeds retention.