File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments