We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 498bf7a commit 04afc3fCopy full SHA for 04afc3f
openstack/infrastructure.tf
@@ -108,6 +108,12 @@ resource "openstack_blockstorage_volume_v3" "volumes" {
108
snapshot_id = lookup(each.value, "snapshot", null)
109
enable_online_resize = lookup(each.value, "enable_resize", false)
110
}
111
+data "openstack_blockstorage_volume_v3" "volumes" {
112
+ for_each = {
113
+ for x, values in module.design.volumes : x => values if contains(keys(values), "volume_id")
114
+ }
115
+ name = "${var.cluster_name}-${each.key}"
116
+}
117
118
resource "openstack_compute_volume_attach_v2" "attachments" {
119
for_each = module.design.volumes
0 commit comments