Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on multiple providers usage #417

Merged
merged 1 commit into from
May 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ description: |-

# OVH Provider

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

-> __NOTE__ According on your needs, you may need to use additional providers. This [documentation page](https://help.ovhcloud.com/csm/en-gb-terraform-at-ovhcloud?id=kb_article_view&sysparm_article=KB0054612) provides the mapping between the control panel concepts and the terraform providers / ressources.

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

## Provider configuration

Requests to OVHcloud APIs require a set of secrets keys and the definition of the API end point.
See [First Steps with the API](https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/) (or the French version, [Premiers pas avec les API OVHcloud](https://docs.ovh.com/fr/api/api-premiers-pas/)) for a detailed explanation.
The provider needs to be configured with the proper credentials before it can be used. Requests to OVHcloud APIs require a set of secrets keys and the definition of the API end point. See [First Steps with the API](https://docs.ovh.com/gb/en/customer/first-steps-with-ovh-api/) (or the French version, [Premiers pas avec les API OVHcloud](https://docs.ovh.com/fr/api/api-premiers-pas/)) for a detailed explanation.

Besides the API end-point, the required keys are the `application_key`, the `application_secret`, and the `consumer_key`.
These keys can be generated via the [OVHcloud token generation page](https://api.ovh.com/createToken/?GET=/*&POST=/*&PUT=/*&DELETE=/*).
Expand All @@ -42,18 +42,6 @@ provider "ovh" {
}
```

Terraform 0.12 and earlier:

```hcl
# Configure the OVHcloud Provider
provider "ovh" {
endpoint = "ovh-eu"
application_key = "xxxxxxxxx"
application_secret = "yyyyyyyyy"
consumer_key = "zzzzzzzzzzzzzz"
}
```

Alternatively the secret keys can be retrieved from your environment.

* `OVH_ENDPOINT`
Expand Down Expand Up @@ -198,17 +186,6 @@ variables must also be set:

* `OVH_TESTACC_IP` - set this variable to "yes" will order public ip blocks.

### Credentials

You will also need to [generate an OVHcloud token](https://api.ovh.com/createToken/?GET=/*&POST=/*&PUT=/*&DELETE=/*) and use it to set the following environment variables:

* `OVH_APPLICATION_KEY`

* `OVH_APPLICATION_SECRET`

* `OVH_CONSUMER_KEY`

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

### Using a locally built terraform-provider-ovh

Expand Down