Using Terraform with OVHcloud
Introduction
Terraform is an open-source infrastructure as code (IaC) tool created by Hashicorp in 2014, written in Go. It aims at building, changing and version controlling your infrastructure. You can define and provision your infrastructure by writing the definition of your resources in Hashicorp Configuration Language (HCL).
It is widely used and you can also use it with OVHcloud.
At the heart of the Terraform product is the concept of provider which is a plugin that enables interaction with an API.
Providers
Based on your automation needs at OVHcloud, you have to pick one or more of the following Terraform providers:
- OVH provider that interacts with OVHcloud API portal. You can refer to this guide to learn more on how to use the API portal. Furthermore, the OVH provider evolves as fast as the OVHcloud offering, be sure to follow the releases.
- OpenStack provider : the open standard cloud computing platform that OVHcloud is using to power its Public Cloud service. For more information, check this page.
- Hashicorp AWS provider to automate the operations of the Object Storage.
- Hashicorp Kubernetes provider : once you have provisionned a Kubernetes cluster with OVH provider, you can manage your Kubernetes configuration with this provider.
- Hashicorp vSphere provider to automate the operations of VMware on OVHcloud solutions.
- Nutanix provider to automate the operations of OVHcloud Nutanix on OVHcloud.
Mapping OVHcloud GUI to Terraform providers & resources
OVHcloud console GUI (also called "Control Panel" or "Manager") hides some background API complexity to the user. From a GUI concept, it may be difficult to find the correct provider and the associated resource. The tables below are here to help.
- The following categories are based on the Control Panel 'New version (Beta)' from December 2022.
- If no resource is available but a Terraform data source is, this is mentioned in the table with "[data source]".
- When multiple resources are available for one GUI concept, only the main resource is provided in this list.
Bare Metal Cloud
Hosted Private Cloud
Public Cloud
Compute
Storage and Backup
Network
Containers & Orchestration
AI & Machine Learning
Data & Analytics
Settings
Web Cloud
Domain Names
Web
Network
Telecom
This universe is currently not supported by Terraform providers
My account
My profile
Identity and Access Management (IAM)
Resources
Terraform with OVHcloud examples
- Public Cloud examples repository on GitHub
- Creating a kubernetes cluster on Terraform
- Creating a private registry (Harbor) through Terraform
- Using OVHcloud High Performance (S3) Object Storage as Terraform Backend to store your Terraform state
OVH Provider
- Registry entry
- Documentation
- Source code on GitHub (contributions are welcome)