You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/index.html.markdown
+27-5
Original file line number
Diff line number
Diff line change
@@ -14,27 +14,49 @@ with the proper credentials before it can be used.
14
14
15
15
Use the navigation to the left to read about the available resources.
16
16
17
-
## Example Usage
17
+
## Configuration of the provider
18
+
19
+
Requests to OVH APIs need to configure secrets keys in the provider, either fetching them from `~/.ovh.conf` file, in configuration of OVH provider or from your environment.
20
+
21
+
It is recommend to install [ovh-cli](https://github.com/ovh/ovh-cli) to handle and manage all your secret keys.
22
+
23
+
Follow [installation](https://github.com/ovh/ovh-cli#installation) then [setup](https://github.com/ovh/ovh-cli#getting-started) steps of ovh-cli to initialize your environment (secret keys and `~/.ovh.conf` file).
24
+
25
+
Then, you can just declare a minimal configuration of the OVH provider:
18
26
27
+
```hcl
28
+
# Configure the OVH Provider
29
+
provider "ovh" {
30
+
endpoint = "ovh-eu"
31
+
}
19
32
```
33
+
Secret keys `endpoint`, `application_key`, `application_secret` or
34
+
`consumer_key` will be fetched from the `~/.ovh.conf` file.
35
+
36
+
Or you can declare them in provider configuration:
37
+
38
+
```hcl
20
39
# Configure the OVH Provider
21
40
provider "ovh" {
22
41
endpoint = "ovh-eu"
23
42
application_key = "yyyyyy"
24
43
application_secret = "xxxxxxxxxxxxxx"
25
44
consumer_key = "zzzzzzzzzzzzzz"
26
45
}
46
+
```
47
+
48
+
Or let the provider fetching them from your environment (see "[Configuration reference](#configuration-reference)").
49
+
27
50
51
+
## Example Usage
52
+
53
+
```
28
54
# Create a public cloud user
29
55
resource "ovh_publiccloud_user" "user-test" {
30
56
# ...
31
57
}
32
58
```
33
59
34
-
If you don't provide `endpoint`, `application_key`, `application_secret` or
35
-
`consumer_key`, the provider will try to fetch them from the ~/.ovh.conf file
36
-
generated by ovh-cli, or from your environment (see below).
0 commit comments