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 with name).
  • labels (Map of String) A map of key/value labels.
  • name (String) The pool name to match (conflicts with id).

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 (Set of Object) 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.
  • 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 instances

Read-Only:

  • id (String)
  • ipv6_address (String)
  • name (String)
  • public_ip_address (String)