---
title: "Using Terraform with OVHcloud (EN)"
description: "Find out about useful resources in order to use Terraform with OVHcloud"
url: https://docs.ovhcloud.com/es/guides/manage-and-operate/terraform/at-ovhcloud
lang: es
lastUpdated: 2025-06-13
---
# Using Terraform with OVHcloud (EN)

## Introduction

[Terraform](https://www.terraform.io/) is an open-source infrastructure as code (IaC) tool created by [Hashicorp](https://www.hashicorp.com/) 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](https://developer.hashicorp.com/terraform/language/providers) 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](https://registry.terraform.io/providers/ovh/ovh/latest) that interacts with [OVHcloud API portal](https://eu.api.ovh.com/). You can refer to [this guide](/es/guides/manage-and-operate/api/first-steps.md) 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](https://github.com/ovh/terraform-provider-ovh/releases).
- [OpenStack provider](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/lastest) : the open standard cloud computing platform that OVHcloud is using to power its Public Cloud service. For more information, check [this page](https://www.ovhcloud.com/es-es/public-cloud/openstack/).
- [Hashicorp AWS provider](https://registry.terraform.io/providers/hashicorp/aws/latest/) to automate the operations of the Object Storage.
- [Hashicorp Kubernetes provider](https://registry.terraform.io/providers/hashicorp/kubernetes/latest) : once you have provisionned a Kubernetes cluster with OVH provider, you can manage your Kubernetes configuration with this provider.
- [Hashicorp vSphere provider](https://registry.terraform.io/providers/hashicorp/vsphere/latest) to automate the operations of [VMware on OVHcloud solutions](https://www.ovhcloud.com/es-es/enterprise/products/hosted-private-cloud/).
- [Nutanix provider](https://registry.terraform.io/providers/nutanix/nutanix/latest) to automate the operations of OVHcloud [Nutanix on OVHcloud](https://www.ovhcloud.com/es-es/hosted-private-cloud/nutanix/).

## 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](https://developer.hashicorp.com/terraform/language/resources). The tables below are here to help.

:::info

- 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](https://developer.hashicorp.com/terraform/language/data-sources) 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

| Control Panel concept   | Terraform provider |  Resource or Data Source                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Dedicated Server        | ovh                | \[data source] [ovh\_dedicated\_server](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/dedicated_server)                                                                                                                                                                                                                                                                                                                                     |
| Virtual Private Server  | ovh                | [ovh\_vps](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/vps)                                                                                                                                                                                                                                                                                                                                                                               |
| HA-NAS                  | ovh                | -\[data source] [ovh\_dedicated\_nasha](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/dedicated_nasha)<br />- [ovh\_dedicated\_nasha\_partition](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dedicated_nasha_partition)                                                                                                                                                                                           |
| Enterprise File Storage |  ovh               | not available                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Cloud Disk array        | ovh                | \[data source] [ovh\_dedicated\_ceph](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/dedicated_ceph)                                                                                                                                                                                                                                                                                                                                         |
| Veeam Cloud Connect     | not available      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Logs Data Platform      |  ovh               | partially available :<br />- [ovh\_dbaas\_logs\_graylog\_output\_stream](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dbaas_logs_graylog_output_stream) <br /> - [ovh\_dbaas\_logs\_input](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dbaas_logs_input) <br />- \[data source] [ovh\_dbaas\_logs\_input\_engine](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/dbaas_logs_input_engine) |

### Hosted Private Cloud

| Control Panel concept | Terraform provider                                                                                                                  |  Resource or Data Source |
| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| VMware                | - not available for ordering<br />- [vsphere](https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs) for management | see provider             |
| Nutanix               | - not available for ordering<br />- [nutanix](https://registry.terraform.io/providers/nutanix/nutanix/lastest) for management       | see provider             |

### Public Cloud

#### Compute

| Control Panel concept  | Terraform provider(s) |  Resource or Data Source                                                                                                                                      |
| ---------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Instances (VM & Metal) | openstack             |  [openstack\_compute\_instance\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/compute_instance_v2) |

#### Storage and Backup

| Control Panel concept  | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                                                                                                      |
| ---------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Block Storage          | openstack             |  [blockstorage\_volume\_v3](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/blockstorage_volume_v3)                                                                                                                                                                                                                                      |
| Object Storage (Swift) |  openstack            |  [objectstorage\_object\_v1](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/objectstorage_object_v1)                                                                                                                                                                                                                                    |
|  Object Storage        | ovh                   |  [cloud\_project\_storage](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_storage)                                                                                                                                                                                                                                                                       |
| Object Storage users   | ovh                   | [ovh\_cloud\_project\_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user) with _objectstore\_operator_ role                                                                                                                                                                                                                                       |
| Cloud Archive          | openstack             | [objectstorage\_object\_v1](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/objectstorage_object_v1) with [storage\_policy](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/objectstorage_container_v1#storage_policy) set to “PCA” in order to create an “archive” swift container |
|  Cold Archive          | Hashicorp aws         |  [aws\_s3\_bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket)                                                                                                                                                                                                                                                                                     |
| Databases              |  ovh                  | [cloud\_project\_database](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_database) and [cloud\_project\_database\_database](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_database_database)                                                                                                                      |
| Volume Snapshot        | openstack             |  [openstack\_blockstorage\_snapshot\_v3](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/data-sources/blockstorage_snapshot_v3)                                                                                                                                                                                                                    |
| Volume Backup          | openstack             | \[data source] [openstack\_blockstorage\_volume\_v3](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/data-sources/blockstorage_volume_v3)                                                                                                                                                                                                          |
| Instance Backup        | openstack             | [openstack\_images\_image\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/images_image_v2)                                                                                                                                                                                                                                          |

#### Network

| Control Panel concept       | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| --------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Private network (vRack)     | ovh & openstack       | - [ovh\_vrack\_cloudproject](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/vrack_cloudproject) <br />- [openstack\_networking\_network\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/data-sources/networking_network_v2) <br />- [openstack\_networking\_subnet\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_subnet_v2) <br />- [ovh\_cloud\_project\_network\_private](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_network_private) <br />- [ovh\_cloud\_project\_network\_private\_subnet](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_network_private_subnet) |
| Load Balancer               | openstack             | [openstack\_lb\_loadbalancer\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/lb_loadbalancer_v2)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| Public IPs - Floating IPs   | openstack             | [openstack\_networking\_floatingip\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_floatingip_v2)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Public IPs - Additional IPs | ovh                   | [ovh\_ip\_service](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ip_service)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Gateway                     | openstack             | [openstack\_networking\_router\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/networking_router_v2)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

#### Containers & Orchestration

| Control Panel concept                                          | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                        |
| -------------------------------------------------------------- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Managed Kubernetes Service - Cluster operations                | ovh                   | [ovh\_cloud\_project\_kube](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_kube)                                                                                                                                                                                           |
| Managed Kubernetes Service - Application deployment operations | Hashicorp Kubernetes  | [kubernetes\_namespace](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) [kubernetes\_deployment](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/deployment)                                                                   |
| Kubernetes Load Balancer                                       | Hashicorp kubernetes  | [kubernetes\_service](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/service) as described in this [tutorial](/es/guides/public-cloud/containers-orchestration/managed-kubernetes/using-lb.md)                                                                              |
| Managed Private Registry                                       | ovh                   | [ovh\_cloud\_project\_containerregistry](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_containerregistry)<br />[ovh\_cloud\_project\_containerregistry\_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_containerregistry_user) |
| Workflow Management                                            | ovh                   | [cloud\_project\_workflow\_backup](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_workflow_backup)                                                                                                                                                                         |

#### AI & Machine Learning

| Control Panel concept | Terraform provider(s)                                                                                                  |  Resource or Data Source |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| AI Notebooks          |  not available but [ovhai CLI](/es/guides/public-cloud/ai-machine-learning/ai-cli-overview.md) can help for automation |                          |
| AI Training           |  not available but [ovhai CLI](/es/guides/public-cloud/ai-machine-learning/ai-cli-overview.md) can help for automation |                          |
|  AI Deploy            |  not available but [ovhai CLI](/es/guides/public-cloud/ai-machine-learning/ai-cli-overview.md) can help for automation |                          |

#### Data & Analytics

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Logs Data Platform    |  ovh                  | partially available :<br />- [ovh\_dbaas\_logs\_graylog\_output\_stream](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dbaas_logs_graylog_output_stream) <br /> - [ovh\_dbaas\_logs\_input](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dbaas_logs_input) <br />- [ovh\_dbaas\_logs\_cluster](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/dbaas_logs_cluster) <br />- \[data source] [ovh\_dbaas\_logs\_input\_engine](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/dbaas_logs_input_engine) |

#### Settings

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                                                                      |
| --------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|  Users & Roles        | ovh                   | [ovh\_cloud\_project\_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user#role_names)                                                                                                                                                                                                                              |
| Quotas & Regions      |  not available        |                                                                                                                                                                                                                                                                                                                                                               |
| SSH keys              |  ovh & openstack      |  [ovh\_me\_ssh\_key](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/me_ssh_key). If you use the openstack provider for compute, you will need to use [openstack\_compute\_keypair\_v2](https://registry.terraform.io/providers/terraform-provider-openstack/openstack/latest/docs/resources/compute_keypair_v2) to manage the ssh keys |
| Project Settings      | ovh                   |  [ovh\_cloud\_project](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project)                                                                                                                                                                                                                                                   |

### Web Cloud

#### Domain Names

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                             |
| --------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Domain name           | ovh                   | [ovh\_domain\_zone](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ovh_domain_zone)                           |
| DNS Zone record       | ovh                   | [ovh\_domain\_zone\_record](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ovh_domain_zone_record)            |
| DNS Server            |  not available        |                                                                                                                                      |
| Redirection           | ovh                   |  [ovh\_domain\_zone\_redirection](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ovh_domain_zone_redirection) |
| DynHost               |  not available        |                                                                                                                                      |
| GLUE Record           |  not available        |                                                                                                                                      |

#### Web

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                       |
| --------------------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Hosting plan          |   not available       |                                                                                                                                |
| Database              |  ovh                  | [ovh\_hosting\_privatedatabase](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/hosting_privatedatabase) |
| Emails                | not available         |                                                                                                                                |
|  Microsoft            |  not available        |                                                                                                                                |

### Network

| Control Panel concept               | Terraform provider(s) |  Resource or Data Source                                                                                         |
| ----------------------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------- |
| vRack private network               |  ovh                  |  [ovh\_vrack](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/vrack)                       |
| Public IP Adresses - Additional IPs |  ovh                  | [ovh\_ip\_service](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ip_service)             |
| OVH Cloud Connect                   | ovh                   | [ovh\_ovhcloud\_connect](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/ovhcloud_connect) |
| Load Balancer                       | ovh                   | [ovh\_iploadbalancing](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/iploadbalancing)    |
| CDN Infrastructure                  | not available         |                                                                                                                  |

### Telecom

This universe is currently not supported by Terraform providers

### My account

#### My profile

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                                                                                                |
| --------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Profile               |  ovh                  | \[data source] [ovh\_me](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/me)                                                                                                                                                                                                                   |
| Payment method        | ovh                   | - \[data source] [ovh\_me\_paymentmean\_bankaccount](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/me_paymentmean_bankaccount) <br />- \[data source] [ovh\_me\_paymentmean\_creditcard](https://registry.terraform.io/providers/ovh/ovh/latest/docs/data-sources/me_paymentmean_creditcard) |

#### Identity and Access Management (IAM)

| Control Panel concept | Terraform provider(s) |  Resource or Data Source                                                                                                                                                                                                                        |
| --------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Policies              | ovh                   | [ovh\_iam\_policy](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/iam_policy)                                                                                                                                            |
| Identities            | ovh                   | - [ovh\_me\_identity\_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/me_identity_user) <br />- [ovh\_me\_identity\_group](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/me_identity_group) |
| Resource groups       | not available         |                                                                                                                                                                                                                                                 |

## Resources

### Terraform with OVHcloud examples

- [Public Cloud examples repository on GitHub](https://github.com/ovh/public-cloud-examples)
- [Creating a kubernetes cluster on Terraform](/es/guides/public-cloud/containers-orchestration/managed-kubernetes/create-cluster.md)
- [Creating a private registry (Harbor) through Terraform](/es/guides/public-cloud/containers-orchestration/managed-private-registry/creation-via-terraform.md)
- [Using OVHcloud High Performance (S3) Object Storage as Terraform Backend to store your Terraform state](/es/guides/public-cloud/compute/use-object-storage-terraform-backend-state.md)

### OVH Provider

- [Registry entry](https://registry.terraform.io/providers/ovh/ovh/latest)
- [Documentation](https://registry.terraform.io/providers/ovh/ovh/latest/docs)
- Source code on [GitHub](https://github.com/ovh/terraform-provider-ovh) (contributions are welcome)
