Skip to content

Commit 92ad129

Browse files
author
nichollri
committed
created volumes on FSxN destination with size info from source cluster
1 parent 27fc5f6 commit 92ad129

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Terraform/fsxn-replicate/main.tf

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,31 +95,32 @@ data "netapp-ontap_storage_volume_data_source" "my_vol" {
9595
name = each.value
9696
}
9797

98-
resource "netapp-ontap_storage_volume_resource" "example2" {
98+
resource "netapp-ontap_storage_volume_resource" "volloop" {
99+
for_each = data.netapp-ontap_storage_volume_data_source.my_vol
99100
cx_profile_name = "dr_clus"
100-
name = "rvwn_vol1_tf"
101+
name = "${each.value.name}_dp"
102+
type = "DP"
101103
svm_name = aws_fsx_ontap_storage_virtual_machine.mysvm.name
102104
aggregates = [
103105
{
104106
name = "aggr1"
105107
},
106108
]
107109
space_guarantee = "none"
108-
snapshot_policy = "default"
109110
space = {
110-
size = 100
111-
size_unit = "gb"
111+
size = each.value.space.size
112+
size_unit = each.value.space.size_unit
112113
logical_space = {
113114
enforcement = true
114115
reporting = true
115116
}
116117
}
117118
tiering = {
118-
policy_name = "auto"
119+
policy_name = "all"
119120
}
120121
nas = {
121122
export_policy_name = "default"
122123
security_style = "unix"
123-
junction_path = "/rvwn_vol1_tf"
124+
# junction_path = join("", ["/",each.value.name])
124125
}
125126
}

0 commit comments

Comments
 (0)