Configuration as Code

Configuration as Code is a term that describes a process for managing software. Instead of configuring software in a Graphic User Interface (for example, changing how your software works in a web browser), you configure your software by running a executable that uses your code to define how the software should look.

Configuration is usually managed as a versioned artifact, so it's easy to understand how your software will be different if you make a change, easy to share the configuration before it's applied and easy to historically see how your software has changed.

Some examples of configuration as code:

Some tools that can be used for configuring web technologies as code (note that these are primarily tools for Infrastructure as Code)

  • Terraform
  • Ansible
  • Salt

Published on 2022-09-25

Note Explorer