ac
module "sbx_infrastructure" {
source = "../../../../modules/mcs/infrastructure_v2"
LOCATION_NAME = var.LOCATION_NAME
NETWORKS = var.NETWORKS
OPENSTACK_FLOTINGIP_POOL = var.OPENSTACK_FLOTINGIP_POOL
LOCATION_NAME_ABBV = var.LOCATION_NAME_ABBV
depends_on = [ module.sec_rules ]
}
сам кусок модуля resource "openstack_networking_subnet_v2" "subnetwork" {
for_each = var.NETWORKS
name = "${var.LOCATION_NAME}-${var.LOCATION_NAME_ABBV}-${each.key}"
network_id = openstack_networking_network_v2.terraform[each.key].id
cidr = each.value.cidr
ip_version = 4
dns_nameservers = each.value.dns
dynamic "allocation_pool" {
for_each = each.value.allocation_pool
content {
start = allocation_pool.value.start
end = allocation_pool.value.end
}
}
}
ошибкаError: Unsupported attribute
│
│ on ../../../../modules/mcs/infrastructure_v2/subnetwork.tf line 39, in resource "openstack_networking_subnet_v2" "subnetwork":
│ 39: start = allocation_pool.value.start
│ ├────────────────
│ │ allocation_pool.value is "10.242.1.199"
│
│ This value does not have any attributes.
╵
╷
│ Error: Unsupported attribute
│
│ on ../../../../modules/mcs/infrastructure_v2/subnetwork.tf line 39, in resource "openstack_networking_subnet_v2" "subnetwork":
│ 39: start = allocation_pool.value.start
│ ├────────────────
│ │ allocation_pool.value is "10.242.1.20"
│
│ This value does not have any attributes.



