Skip to Content
Home / DevOps / Infrastructure as Code (IaC)
Infrastructure as code (IaC)

Infrastructure as Code (IaC): versioned, approved.

Terraform and GitOps instead of clicking by hand: every change goes through a pull request, with policy checks and a cost estimate, and reaches production only after approval – rebuildable at any time.

  • Terraform and Terragrunt
  • Change management through pull requests
  • Drift detection
terraform · prod-networkillustration
$ terraform plan -out prod.plan
[plan] 3 to add · 1 to change · 0 to destroy
✓ checkov · 0 policy violations
! opa · public IP address → approval required
✓ infracost · +38 USD / month estimated extra cost
[review] 2 approvers assigned
✓ apply · only after merge, automatically
✓ drift · production state = code
$

Illustrative example – not client data.

Starting point

A familiar situation?

This is how it usually starts – and these are the situations we build the solution on.

This is how we solve it
#teamtoday · 3 new messagesillustration
IM
Infrastructure engineer

Who changed the firewall rule in the production environment? And why?

⚠ Untraceable changes
FV
Head of Development

The test and production environments differ from each other again.

⚠ Differing environments
IV
Head of IT

If we had to tear it down and rebuild it tomorrow, it would take weeks.

⚠ An environment that cannot be rebuilt
DX
Devertix
What you get

What we introduce

Infrastructure can be handled just like application code: versioned, reviewed, tested.

Terraform modules

Reusable, documented modules for the common building blocks.

Environments from code

Dev, test, production – from the same code, with no differences.

Policy check

Policy as code: security and compliance rules in the plan.

Cost estimate

Every change shows the expected extra monthly cost.

Approval via pull request

Four-eyes principle, with a full trail.

Drift detection

An alert if the production state differs from the code.

Step by step

IaC step by step

From bringing the existing environment into code to full GitOps operation.

Bringing the existing environment into code – illustrative figure with made-up dataillustration
01

Bringing the existing environment into code

We import the resources already running into the Terraform code without downtime and organise them into modules. This makes the existing environment manageable too, not just the new one.

  • Import without downtime
  • Organising into modules
  • Documentation next to the code
Policies and cost in the plan – illustrative figure with made-up dataillustration
02

Policies and cost in the plan

Every plan comes with an automatic policy check – for example, there can be no unencrypted storage or public database – and the expected extra cost is visible too.

  • Checkov and OPA
  • Compliance rules
  • Infracost estimate
Approval and automatic apply – illustrative figure with made-up dataillustration
03

Approval and automatic apply

A change reaches production only after review and approval, and even then automatically, from the pipeline – nobody has to run it by hand. The state is stored encrypted, with locking.

  • Four-eyes principle
  • Apply from the pipeline
  • Encrypted, locked state
Drift detection – illustrative figure with made-up dataillustration
04

Drift detection

Every day we compare the production state with the code. If someone has changed something by hand, an alert goes out, and the change either goes into the code or is reverted.

  • Daily comparison
  • Alerts on deviations
  • Revert or bring into code
Architecture

Infrastructure change from code

The change starts as a pull request; the plan comes with a policy check and a cost estimate, after approval the apply runs automatically, the state is stored encrypted and locked, and drift detection compares the production state with the code every day.

Infrastructure as Code: engineer, pull request, plan and policy check, cost estimate, approver, apply, state, drift detection, AWS accounts, Kubernetes and your own servers, with encrypted connections
Versionedevery change in Git
Policy as codepolicy in the plan
Cost estimateper change
Driftdaily check
Before and after

Infrastructure – by clicking and from code

TODAY
  • Manual clicking in the console
  • Who, what, when? – no trace
  • Test and production environments differ
  • A rebuild would take weeks
→
DEVERTIX
  • Every change in a pull request
  • Full trail in Git
  • Every environment from the same code
  • Rebuild from code, in hours
Use cases

What is it used for?

Cloud

AWS, Azure and GCP environments

Accounts, network and services from code.

Kubernetes

Cluster and applications

Terraform and Helm, with Argo CD.

Your own servers

On-premises configuration

Ansible for the servers and the network.

Audit

Change management

Four-eyes principle and an audit trail.

DR

Disaster recovery

Rebuilding the environment from code.

Legacy environment

Tidying up

Bringing a manually built environment into code.

Reference

Our own projects

MBH Bank
AWS · Regulated environment

Three banks into the cloud at once

Challenge

Moving three banks to the cloud at the same time, under strict banking regulation.

Solution

Landing Zone, container platform, automated deployment, MAP methodology – with technical and regulatory leadership.

Result

Since then we have also moved further systems to the cloud that are classed as critical in the business impact analysis (BIA).

Our own reference
Invitech
DevOps · VMware · Automation

Automated provisioning instead of tickets: Ansible for VMware

Challenge

Slow, ticket-based provisioning in the VMware environment.

Solution

Ansible Tower and Ansible automations for the VMware environment.

Result

Automated, faster provisioning instead of tickets.

Our own reference
Total Studio
AWS · Modernisation

From assessment to a modernised AWS environment

Challenge

A growing infrastructure that was hard to keep track of.

Solution

Infrastructure assessment, monthly operations, migration.

Goal

A predictable environment, modernised step by step.

Our own reference
Technology

What we build with

IaC

  • Terraform
  • Terragrunt
  • OpenTofu

Configuration

  • Ansible
  • Helm
  • Argo CD

Policy and cost

  • Checkov
  • OPA / Conftest
  • Infracost

Runtime

  • GitLab CI
  • GitHub Actions
  • Atlantis
Security and data

Auditable changes

  • Every change in Git: who, what, when
  • Approval under the four-eyes principle
  • Encrypted, locked state
  • Daily drift check
FAQ

Frequently asked questions

Can an existing, manually built environment be brought into code too?

Yes. We import the running resources into Terraform without downtime and organise them into modules step by step.

Terraform or another tool?

In most cloud environments Terraform (or the open-source OpenTofu) is the best choice; Helm and Argo CD complement it for Kubernetes, and Ansible for servers.

What is drift?

The difference between the state described in the code and the state actually running – typically because of a manual change. The daily check flags it, and the change either goes into the code or is reverted.

Does it help with audits?

Yes. The Git history, the approvals and the policy checks give a precise trail of who changed what, when and why.

Free initial consultation

Let's talk through your situation

One required question, your name and your email address – the other fields are optional.

  1. We review your answers.
  2. A colleague of ours gets in touch with you, and we clarify the goals in a short call.
  3. We give you a specific proposal for the first step.