What is the difference between mutable and immutable infrastructure?
IntermediateConceptIaC and Terraform Fundamentals
Answer
Mutable means you change servers in place (patch, reconfigure over SSH). Immutable means you replace them with a new image or instance whenever something changes. Terraform leans immutable: many attribute changes show as -/+ (destroy and recreate), and we bake AMIs with Packer rather than patching live nodes. It reduces snowflake servers and drift.
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