Terraform
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.
-
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.
0202 State and Lifecycle Management
Track changes, plan updates, and apply only what’s necessary. Terraform automatically manages dependencies and resource lifecycles.
0303 Reusable Modules
Package infrastructure components into reusable modules for consistent deployments across projects and teams.
0404 CI/CD Integration
Easily manage versions and automation. Validate, test, and deploy your infrastructure within your development pipelines.
0505 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/clevercloudnamespace.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
UP Program: Clever Cloud announces its fifth startup selection
With this new batch, Clever Cloud welcomes four startups to the UP Program: Sentibee, Pictaderm, Legaia and Cockpit Agriculture.Sōzu 2.0 — turning a reverse proxy into a programmable edge
Sōzu is the reverse proxy that sits in front of every application running on Clever Cloud. After eighteen months of work — first the HTTP/2 multiplexer, built on our existing kawa pivot, then almost every other layer of the proxy, and finally a long run in production on the cleverapps.io load balancers — Sōzu 2.0 is out.K3s vs K8s: What Are the Differences and Which One Should You Choose in 2026?
Kubernetes has become the standard for container orchestration. But depending on your infrastructure constraints (limited resources, edge computing, IoT, or large-scale enterprise clusters), the distribution you choose can radically change the operational experience. K3s and K8s (upstream Kubernetes) address different needs, even though both share the same CNCF-certified foundation.