Terraform

Define, version, and automate your infrastructure with code. Reliable, repeatable, and built for modern development workflows.

Terraform

Terraform is an open-source Infrastructure as Code (IaC) tool that allows you to describe your infrastructure using declarative configuration files. Whether you are deploying applications, managing services, or provisioning complete environments, Terraform provides automation at scale with full consistency and traceability. Its configuration language (HCL) turns your infrastructure into code — ready to be executed, shared, and reused across teams.


11:41

The official Clever Cloud Terraform provider lets you provision and deploy your applications, databases, and add-ons directly from your HCL code — no GUI, no manual scripts, no dependency on a third-party orchestrator.

Compatible with OpenTofu, it integrates natively into your GitOps and CI/CD pipelines. All resources managed by the provider are hosted in Europe, in Clever Cloud datacenters subject to French and European law — beyond the reach of the American Cloud Act.

Applications (Node.js, Java, Python, PHP, Go, Ruby, .NET…), managed databases (PostgreSQL, MySQL, MongoDB, Redis…), S3-compatible object storage (Cellar), IAM as a Service (Keycloak), monitoring: the entire Clever Cloud catalog is manageable as infrastructure as code through a single declarative interface.

  1. 01

    01 Declarative Infrastructure

    Define the target state of your infrastructure in code. Terraform ensures the live infrastructure always matches that configuration every time you apply it.

  2. 02

    02 State and Lifecycle Management

    Track changes, plan updates, and apply only what’s necessary. Terraform automatically manages dependencies and resource lifecycles.

  3. 03

    03 Reusable Modules

    Package infrastructure components into reusable modules for consistent deployments across projects and teams.

  4. 04

    04 CI/CD Integration

    Easily manage versions and automation. Validate, test, and deploy your infrastructure within your development pipelines.

  5. 05

    05 Team Collaboration

    Share infrastructure code in repositories, manage changes through pull requests, and maintain a complete history of all modifications.

What is Infrastructure as Code (IaC)?

Infrastructure as Code enables teams to manage their infrastructure through code rather than manual configuration. It increases reliability, reduces human error, and simplifies automation. With a declarative language like HCL, infrastructure becomes predictable, testable, and integrated into modern development practices.

Use Cases:

  • Automated Environment Setup: Provision complete stacks — applications, services, networking — from a single configuration.
  • On-Demand Ephemeral Environments: Quickly deploy temporary environments for development, testing, or feature reviews.
  • Consistent Deployments: Guarantee infrastructure reproducibility across teams, environments, and stages of the release cycle.
  • Resilience: Restore critical infrastructure from source code with minimal downtime.
  • Platform Integration: Use providers to interact with hosting platforms, PaaS tools, or orchestrators like Kubernetes.

What you can manage with the provider

  • Runtimes: Node.js, Java, Python, PHP, Go, Ruby, Rust, Scala, .NET, Docker, Static, FrankenPHP
  • Managed databases: PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, Cassandra
  • Storage: Cellar (S3-compatible object storage), File System Buckets
  • IAM: Keycloak as a Service (multi-instance, dedicated console, SSO, OIDC/SAML)
  • Network: Network Groups, Load Balancers
  • Add-ons: Pulsar, Metabase, Materia KV, Materia TS, Otoroshi, and more

Why Use Terraform on Clever Cloud

  • Plug-and-Play Integration
    Connect Terraform to your environment via our official provider — no custom tooling required.
  • Immutable Infrastructure
    Deterministic, repeatable deployments. Your infrastructure behaves the same way every time.
  • DevOps-Ready Environment
    Compatible with GitOps practices, continuous integration, and observability tools.
  • Reliable and Scalable Platform
    Run your Terraform-managed resources on a high-availability infrastructure with automatic scaling.
  • Data Sovereignty
    Host your resources in Europe with full GDPR compliance and sovereignty guarantees.

Adopt Terraform Today

Terraform gives you complete control over your infrastructure through code. Combined with a managed platform, you can automate deployments, reduce complexity, and focus on what really matters: creating value with your applications.

Q&A – Terraform

Is the Clever Cloud Terraform provider open source? 

Yes. The provider is open source and available on GitHub under the MIT license. It is published on the official Terraform Registry under the CleverCloud/clevercloud namespace.

Is it compatible with OpenTofu? 

Yes. The Clever Cloud Terraform provider is fully compatible with OpenTofu. No configuration changes are needed — the same HCL files and provider source work identically with both tools.

Which runtimes and databases are supported? 

All major runtimes (Node.js, Java, Python, PHP, Go, Ruby, Rust, Scala, .NET, Docker) and all managed databases available on Clever Cloud (PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, Cassandra) are supported. The full support matrix is available in the provider documentation.

Can I manage my Keycloak instances with Terraform? 

Yes. Keycloak as a Service (multi-instance, dedicated console, MCO, Grafana monitoring) is fully manageable via the Terraform provider.

Is the infrastructure hosted in Europe? Y

es. All resources provisioned via the Clever Cloud Terraform provider are hosted in Clever Cloud’s own datacenters in France. Clever Cloud has no American parent company and no American subcontractors. Your data is subject exclusively to French and European law.

Discover our news

Cloud modernisation: how to align governance and operations without adding complexity

European organisations are managing increasingly heterogeneous environments: legacy applications, cloud-native services, multi-cloud setups and regulatory constraints are accumulating within information systems rarely designed to handle such diversity.
Engineering Event Guests

Clever Cloud launches Clever Kubernetes Engine (CKE) in public beta on April 27, 2026

Previewed at Devoxx starting April 22, CKE is the culmination of two years of R&D built around a complete reimplementation of Kubernetes.
Company Engineering Press

The DEEP, OVHcloud and Clever Cloud consortium selected to deliver sovereign cloud services for European institutions

Paris – April 17, 2026 – The consortium composed of DEEP by POST Luxembourg Group, OVHcloud and Clever Cloud today announces its selection by the European Commission as part of a major procurement framework to provide sovereign cloud services to the institutions, bodies and agencies of the European Union. This contract, with a ceiling of €180 million over six years, marks a significant milestone in the concrete implementation of Europe’s digital sovereignty strategy.
Company