Skip to main content
Cloud / DevOpsDeployment StrategiesDiagramIntermediate

Immutable Infrastructure

KO: 불변 인프라·EN: Immutable Infrastructure·JA: イミュータブルインフラ

An infrastructure paradigm where deployed servers or containers are never modified in place; any update builds and provisions a fresh image to replace the old one

Table of Contents

Structure Diagram

Mutable Servers vs Immutable Infrastructure
MutableMutable Infrastructure

In-place patching · Config drift

  • Update ModelPatch packages/config on live hosts
  • ConsistencySnowflake servers diverge over time
  • RollbackHard to unwind partial upgrades
ImmutableImmutable Infrastructure

Rebuild & replace · Reproducible

  • Update ModelBuild fresh image & replace instance
  • ConsistencyBit-identical across dev, stage & prod
  • RollbackInstant revert to previous image tag
Quick Answer

What is Immutable Infrastructure?

An infrastructure paradigm where deployed servers or containers are never modified in place; any update builds and provisions a fresh image to replace the old one. It is a core concept in Deployment Strategies within Cloud / DevOps.

Core Principles

Immutable Infrastructure is a cloud-native principle where provisioned servers or containers are never modified in place after deployment. Whenever a security patch, dependency upgrade, or configuration change is required, a brand-new image (container image or VM AMI) is built, tested, and deployed to replace the running instances.

By forbidding in-place edits, teams eliminate configuration drift and "snowflake servers" that behave differently in production than in staging.

Practical Takeaways

  • Externalize all persistent state: Because compute instances are disposable, store uploads, sessions, and logs in managed services (object storage, Redis, databases, centralized logging) rather than local disk.
  • Lock down runtime mutability: Run containers with readOnlyRootFilesystem: true and remove SSH access from production hosts to prevent both accidental manual edits and attacker persistence.
  • Automate Golden Image builds: Use Packer or CI container pipelines to rebuild patched base images on a regular cadence.

Notable Examples

  • Docker & Kubernetes: Containers are instantiated from immutable OCI images and replaced cleanly on every rollout.
  • Netflix: Standardizes deployments around pre-baked AWS AMIs for fast, predictable autoscaling across regions.
  • Talos Linux & AWS Bottlerocket: Purpose-built immutable Linux OSes for Kubernetes nodes with no SSH or shell access.