exoscale_anti_affinity_group (Data Source)
Fetch Exoscale Anti-Affinity Groups data.
Corresponding resource: exoscale_anti_affinity_group.
Example Usage
data "exoscale_anti_affinity_group" "my_anti_affinity_group" {
name = "my-anti-affinity-group"
}
output "my_anti_affinity_group_id" {
value = data.exoscale_anti_affinity_group.my_anti_affinity_group.id
}
Please refer to the examples directory for complete configuration examples.
Schema
Optional
id
(String) The anti-affinity group ID to match (conflicts withname
).name
(String) The group name to match (conflicts withid
).
Read-Only
instances
(Set of String) The list of attached exoscale_compute_instance (IDs).