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
+44-7
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The provider needs to be configured with the proper credentials before it can be
13
13
14
14
Use the navigation to the left to read about the available resources.
15
15
16
-
## Configuration of the provider
16
+
## Provider configuration
17
17
18
18
Requests to OVHcloud APIs require a set of secrets keys and the definition of the API end point.
19
19
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.
@@ -23,17 +23,36 @@ These keys can be generated via the [OVH token generation page](https://api.ovh.
23
23
24
24
These parameters can be configured directly in the provider block as shown hereafter.
25
25
26
+
Terraform 0.13 and later:
26
27
27
28
```hcl
28
-
# Configure the OVHcloud Provider
29
+
terraform {
30
+
required_providers {
31
+
ovh = {
32
+
source = "ovh/ovh"
33
+
}
34
+
}
35
+
}
36
+
29
37
provider "ovh" {
30
38
endpoint = "ovh-eu"
31
-
application_key = "yyyyyy"
32
-
application_secret = "xxxxxxxxxxxxxx"
39
+
application_key = "xxxxxxxxx"
40
+
application_secret = "yyyyyyyyy"
33
41
consumer_key = "zzzzzzzzzzzzzz"
34
42
}
35
43
```
36
44
45
+
Terraform 0.12 and earlier:
46
+
47
+
```hcl
48
+
# Configure the OVHcloud Provider
49
+
provider "ovh" {
50
+
endpoint = "ovh-eu"
51
+
application_key = "xxxxxxxxx"
52
+
application_secret = "yyyyyyyyy"
53
+
consumer_key = "zzzzzzzzzzzzzz"
54
+
}
55
+
37
56
Alternatively the secret keys can be retrieved from your environment.
38
57
39
58
* `OVH_ENDPOINT`
@@ -47,9 +66,27 @@ This later method (or a similar alternative) is recommended to avoid storing sec
0 commit comments