OVH Provider

The OVH provider is used to interact with the many resources supported by OVH. The provider needs to be configured with the proper credentials before it can be used.

Use the navigation to the left to read about the available resources.

Example Usage

# Configure the OVH Provider
provider "ovh" {
  endpoint           = "ovh-eu"
  application_key    = "yyyyyy"
  application_secret = "xxxxxxxxxxxxxx"
  consumer_key       = "zzzzzzzzzzzzzz"
}

# Create a public cloud user
resource "ovh_publiccloud_user" "user-test" {
  # ...
}

If you don't provider "application_key", "application_secret" or "consumer_key", the provider will try to fetch them from the ~/.ovh.conf file generated by ovh-cli.

Configuration Reference

The following arguments are supported:

  • endpoint - (Required) Specify which API endpoint to use. It can be set using the OVH_ENDPOINT environment variable. Value can be set to either "ovh-eu" or "ovh-ca".

  • application_key - (Optional) The API Application Key. If omitted, the OVH_APPLICATION_KEY environment variable is used.

  • application_secret - (Optional) The API Application Secret. If omitted, the OVH_APPLICATION_SECRET environment variable is used.

  • consumer_key - (Optional) The API Consumer key. If omitted, the OVH_CONSUMER_KEY environment variable is used.

Testing and Development

In order to run the Acceptance Tests for development, the following environment variables must also be set:

You should be able to use any OVH environment to develop on as long as the above environment variables are set.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/ovh/index.html