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
This document assumes the use of Terraform 0.13 or later.
6
4
7
5
## Automated Installation (Recommended)
@@ -19,27 +17,45 @@ terraform {
19
17
required_providers {
20
18
vra = {
21
19
source = "vmware/vra"
22
-
version = ">= 0.4.0"
23
20
}
24
21
}
25
22
required_version = ">= 0.13"
26
23
}
27
24
```
25
+
26
+
You can use `version` locking and operators to require specific versions of the provider.
27
+
28
+
**Example**: A Terraform configuration block with the provider versions.
29
+
30
+
```hcl
31
+
terraform {
32
+
required_providers {
33
+
vra = {
34
+
source = "vmware/vra"
35
+
version = ">= x.y.z"
36
+
}
37
+
}
38
+
required_version = ">= 0.13"
39
+
}
40
+
```
41
+
42
+
To specify a particular provider version when installing released providers, see the Terrraform documentation [on provider versioning](https://www.terraform.io/docs/configuration/providers.html#version-provider-versions).
43
+
28
44
### Verify Terraform Initialization Using the Terraform Registry
29
45
30
-
To verify the initialization, navigate to the working directory for your Terraform configuration and run `terraform init`. You should see a message indicating that Terraform has been successfully initialized and downloaded the Terraform Provider for vRealize Automation from the Terraform Registry is installed.
46
+
To verify the initialization, navigate to the working directory for your Terraform configuration and run `terraform init`. You should see a message indicating that Terraform has been successfully initialized and has installed the provider from the Terraform Registry.
31
47
32
48
**Example**: Initialize and Download the Provider.
@@ -163,7 +189,7 @@ The following examples use PowerShell on Windows (x64).
163
189
164
190
### Configure the Terraform Configuration Files
165
191
166
-
A working directory can be initialized with providers that are installed locally on a system by using `terraform init`. The Terraform configuration block is used to configure some behaviors of Terraform itself, such as the Terraform version and the required providers source and version.
192
+
A working directory can be initialized with providers that are installed locally on a system by using `terraform init`. The Terraform configuration block is used to configure some behaviors of Terraform itself, such as the Terraform version and the required providers source and version.
167
193
168
194
**Example**: A Terraform configuration block.
169
195
@@ -172,10 +198,10 @@ terraform {
172
198
required_providers {
173
199
vra = {
174
200
source = "local/vmware/vra"
175
-
version = ">= 0.4.0"
201
+
version = ">= x.y.z"
176
202
}
177
203
}
178
-
required_version = ">= 1.0.0"
204
+
required_version = ">= 0.13"
179
205
}
180
206
```
181
207
@@ -186,14 +212,14 @@ To verify the initialization, navigate to the working directory for your Terrafo
186
212
**Example**: Initialize and Use a Manually Installed Provider
0 commit comments