Infrastructure as code
IaC represents infrastructure intent in reviewable files. Version control records changes and supports collaboration, but files still require safe execution and operational ownership. Declarative configuration describes desired objects rather than a fixed sequence of shell actions. For example, a resource block describes one object; the provider performs API calls to converge it.
A resource block describes one object; the provider performs API calls to converge it.
Imagine managing two network resources through a script of create commands. Repeating it may create duplicates unless the script performs its own discovery and comparison. Declarative infrastructure instead describes the intended objects. Terraform combines that configuration with state mappings and provider reads of real objects, then proposes the operations needed to approach the intended result.
Configuration is the desired description. A provider implements interaction with a service. Convergence is movement toward the declared result. Version control makes configuration reviewable but does not enforce safe execution by itself. A file can be correct for one account and destructive in another. IaC reduces undocumented manual work and can improve reproducibility, but introduces state, versioning, access, and change-review responsibilities. Separate temporary experiments from real ownership, and avoid assuming every existing object in an account belongs to the configuration merely because the tool can discover it.
A resource block describes one object; the provider performs API calls to converge it.
Do not overlook this operational distinction: Declarative configuration describes desired objects rather than a fixed sequence of shell actions.