Skip to content

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 with name).
  • name (String) The group name to match (conflicts with id).
  • timeouts (Block, Optional) (see below for nested schema)

Read-Only

Nested Schema for timeouts

Optional:

  • read (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Last updated on