← All projects

Infrastructure as code

Moving IONOS Cloud projects to infrastructure as code

We bring existing IONOS Cloud projects under Terraform and deploy new ones from code. Ansible automates VM configuration, patching and access.

The problem

We already had projects running in IONOS Cloud and were adding new ones. We needed a repeatable way to provision their resources and keep track of changes once the projects were running.

My responsibility

I write and maintain Terraform definitions for IONOS Cloud virtual data centres and VMs. I work with the team on taking over existing resources and provisioning new projects from code. I also work on the Ansible automation for the machines.

The decisions

Terraform manages the cloud resources. Ansible handles what happens on the machines. The definitions live in Git, so we can see what changed and review the plan before applying a change.

The solution

For projects already running in IONOS Cloud, we describe the resources in Terraform and bring them under its management. New projects start from the code. Terraform defines the virtual data centres and VMs.

Ansible automates machine configuration, patching and granting access to VMs. Azure DevOps supports delivery. Provisioning and the work on the machines can follow the same repeatable process across projects.

Conceptual diagrams

Using code for IONOS Cloud projects
  • Existing projects in IONOS CloudBring the existing resources under Terraform management.
  • New projects in IONOS CloudProvision virtual data centres and VMs from Terraform definitions.
  • Automation on the VMsAnsible handles configuration, patches and access grants.

The outcome

We manage multiple virtual data centres in IONOS Cloud from code. The same approach works for new projects and for maintaining the machines already running.

The takeaway

Provisioning is the first step. I also want patching and access changes to be repeatable, so the machines can be maintained after they are deployed.

Explore the lab

Let's connect

Something to build?
Let’s talk.

Hybrid cloud, observability, automation or an interesting technical problem.

Let's connect

Let’s talk.

If you have a project, a cloud problem or just want to talk about technology, you can reach me here.