juju_subnets (Data Source)¶
A data source representing a list of Juju subnets.
Example Usage¶
data "juju_model" "my_model" {
name = "default"
}
data "juju_subnets" "this" {
model_uuid = data.juju_model.my_model.uuid
space_name = "alpha"
}
Schema¶
Required¶
model_uuid(String) The UUID of the model where subnets exist.
Optional¶
space_name(String) Optional space name filter.zone_name(String) Optional availability zone filter.
Read-Only¶
id(String) Identifier of the subnets data source.subnets(Attributes Map) Map of subnets keyed by CIDR. (see below for nested schema)
Nested Schema for subnets¶
Read-Only:
cidr(String)life(String)provider_id(String)provider_network_id(String)provider_space_id(String)space_name(String)vlan_tag(Number)zones(List of String)