forked from vmware/terraform-provider-vcfa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05-regions.tf
More file actions
22 lines (19 loc) · 852 Bytes
/
05-regions.tf
File metadata and controls
22 lines (19 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Create a Region
# https://registry.terraform.io/providers/vmware/vcfa/latest/docs/data-sources/supervisor
data "vcfa_supervisor" "example" {
name = var.supervisor_name
vcenter_id = vcfa_vcenter.example.id
}
# https://registry.terraform.io/providers/vmware/vcfa/latest/docs/data-sources/supervisor_zone
data "vcfa_supervisor_zone" "example" {
supervisor_id = data.vcfa_supervisor.example.id
name = var.supervisor_zone_name
}
# https://registry.terraform.io/providers/vmware/vcfa/latest/docs/resources/region
resource "vcfa_region" "example" {
name = "tf-example-region"
description = "Created by Terraform VCFA Provider"
nsx_manager_id = vcfa_nsx_manager.example.id
supervisor_ids = [data.vcfa_supervisor.example.id]
storage_policy_names = var.vcenter_storage_policy_names[*]
}