exoscale_instance_pool (Data Source)
Fetch Exoscale Instance Pools data.
Corresponding resource: exoscale_instance_pool.
Example Usage
data "exoscale_instance_pool" "my_instance_pool" {
zone = "ch-gva-2"
name = "my-instance-pool"
}
output "my_instance_pool_id" {
value = data.exoscale_instance_pool.my_instance_pool.id
}Please refer to the examples directory for complete configuration examples.
Schema
Required
zone(String) The Exoscale Zone name.
Optional
id(String) The instance pool ID to match (conflicts withname).labels(Map of String) A map of key/value labels.name(String) The pool name to match (conflicts withid).timeouts(Block, Optional) (see below for nested schema)
Read-Only
affinity_group_ids(Set of String, Deprecated) The list of attached exoscale_anti_affinity_group (IDs). Use anti_affinity_group_ids instead.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).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. Structure is documented below. (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.min_available(Number) Minimum number of running Instances.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.
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 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