Declarative programming states what should exist, not the steps to create it. For infrastructure, a configuration describes the desired resources; Terraform works out the API calls and changes needed to make reality match. section 9.12 section 9.7
Describe the result
A SQL declaration might ask for a table with three columns without specifying how the database builds it. Similarly, an HCL blueprint can ask for one database and one storage bucket; Terraform figures out how to provision them. Its state file records what exists so it can calculate the changes needed. section 9.7 section 9.12
The contrast is with imperative programming, which specifies how to proceed using logic such as loops and conditionals. Declarative configuration avoids writing the infrastructure API calls, security handshakes, and retry logic yourself. section 9.7














