What does idempotency mean in the context of Terraform?
IntermediateConceptIaC and Terraform Fundamentals
Answer
Running terraform apply repeatedly with unchanged config and unchanged real infrastructure produces no changes after the first run. Terraform achieves that by comparing configuration, state and refreshed reality. If a second apply immediately after the first still shows a diff, something is wrong, often a provider bug or a normalised value such as an IAM policy JSON.
More on IaC and Terraform Fundamentals
What is Infrastructure as Code and why do teams use it?BeginnerWhat is the difference between declarative and imperative infrastructure tools?BeginnerWhat is Terraform and what problem does it solve?BeginnerWhat is HCL and can Terraform use anything else?BeginnerWhich files make up a typical Terraform root module?BeginnerHow does Terraform work internally?Advanced