Write
Declare providers, resources, data sources, variables, outputs and module boundaries.
DevOps module 04
Terraform is valuable when state, review, policy and lifecycle discipline are treated as first-class controls.
Declare providers, resources, data sources, variables, outputs and module boundaries.
Download providers, initialise the backend and validate dependency locks.
Review the exact proposed change, replacements, deletions and unknown values.
Execute an approved plan with controlled credentials and auditable output.
Protect remote state with locking, encryption, access control and recovery.
Detect drift, upgrade providers carefully and refactor without recreating resources.
Never rely on an engineer's laptop as the production source of truth.
Require peer review for destructive and replacement operations.
Keep clear state boundaries and credentials for development, test and production.
Import legitimate resources or revert unapproved console changes.