exoscale_instance_pool_list (Data Source)
List Exoscale Instance Pools.
Corresponding resource: exoscale_instance_pool.
Example Usage
data "exoscale_instance_pool_list" "my_instance_pool_list" {
zone = "ch-gva-2"
}
output "my_instance_pool_ids" {
value = join("\n", formatlist(
"%s", data.exoscale_instance_pool_list.my_instance_pool_list.pools.*.id
))
}Please refer to the examples directory for complete configuration examples.
Schema
Required
zone(String) The Exoscale Zone name.
Optional
timeouts(Block, Optional) (see below for nested schema)
Read-Only
id(String) The ID of this resource.pools(Attributes List) The list of exoscale_instance_pool. (see below for nested schema)
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.
Nested Schema for pools
Read-Only:
affinity_group_ids(Set of String) The list of attached exoscale_anti_affinity_group (IDs). Useanti_affinity_group_idsinstead.anti_affinity_group_ids(Set of String) The list of attached exoscale_anti_affinity_group (IDs).deploy_target_id(String) The deploy target ID.description(String) The instance pool description.disk_size(Number) The managed instances disk size.elastic_ip_ids(Set of String) The list of attached exoscale_elastic_ip (IDs).id(String) The instance pool ID.instance_prefix(String) The string used to prefix the managed instances name.instance_type(String) The managed instances type.instances(Attributes Set) The list of managed instances. (see below for nested schema)ipv6(Boolean) Whether IPv6 is enabled on managed instances.key_pair(String) The exoscale_ssh_key (name) authorized on the managed instances.labels(Map of String) A map of key/value labels.min_available(Number) Minimum number of running Instances.name(String) The instance pool name.network_ids(Set of String) The list of attached exoscale_private_network (IDs).security_group_ids(Set of String) The list of attached exoscale_security_group (IDs).size(Number) The number managed instances.state(String) The pool state.template_id(String) The managed instances exoscale_template ID.user_data(String) cloud-init configuration.zone(String) The Exoscale Zone name.
Nested Schema for pools.instances
Read-Only:
id(String) The compute instance ID.ipv6_address(String) The instance (main network interface) IPv6 address.name(String) The instance name.public_ip_address(String) The instance (main network interface) IPv4 address.
Last updated on