exoscale_anti_affinity_group (Resource)
Manage Exoscale Anti-Affinity Groups.
Corresponding data source: exoscale_anti_affinity_group.
Example Usage
resource "exoscale_anti_affinity_group" "my_anti_affinity_group" {
name = "my-anti-affinity-group"
description = "Prevent compute instances to run on the same host"
}Please refer to the examples directory for complete configuration examples.
Schema
Required
name(String) ❗ The anti-affinity group name.
Optional
description(String) ❗ A free-form text describing the group.timeouts(Block, Optional) (see below for nested schema)
Read-Only
id(String) The anti-affinity group ID.
Nested Schema for timeouts
Optional:
create(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).delete(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). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.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.update(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).
-> The symbol ❗ in an attribute indicates that modifying it, will force the creation of a new resource.
Import
# An existing anti-affinity group may be imported by `<ID>`:
terraform import \
exoscale_anti_affinity_group.my_anti_affinity_group \
f81d4fae-7dec-11d0-a765-00a0c91e6bf6Last updated on