Skip to content
Web Design & Development

Infrastructure as Code, Done Properly

Defining servers, networks and services in version-controlled files rather than configuring them by hand.

MediaScaleUp Editorial Team 2 min read 12 views
Infrastructure as Code, Done Properly

What is at stake

Hand-configured infrastructure cannot be reproduced or reviewed, and it drifts until nobody knows how it works.

The playbook

  1. Define infrastructure in code
  2. Review infrastructure changes
  3. Rebuild environments from definitions regularly
  4. Keep secrets out of definition files
  5. Detect and correct drift

Where it goes wrong

Avoid:

  • Manual console changes
  • Undocumented infrastructure
  • Secrets committed to repositories
  • One-off servers nobody can rebuild
What to do and what to avoid with infrastructure as code, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Infrastructure as Code
MeasureFigure
Declarative definitionsdescribe the desired state
Version controlchanges are reviewed like code
Reproducibilityenvironments can be rebuilt from definitions
Driftmanual changes break the match with definitions

Getting outside help

When to hand it over: Bring in help when infrastructure depends on one person's memory.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

MediaScaleUp Editorial Team

Articles here are researched, written and checked by the MediaScaleUp studio team before they are published, and dated when they are reviewed.

Keep reading

More in Web Design & Development