---
title: "exoscale_compute_instance_list (Data Source)"
description: "List Exoscale Compute Instances https://community.exoscale.com/product/compute/instances/.\nCorresponding resource: exoscalecomputeinstance ../resources/compute_instance.md."
url: https://community.exoscale.com/reference/terraform/provider/data-sources/compute_instance_list/
section: reference
last_updated: 2026-10-23
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# exoscale_compute_instance_list (Data Source)

List Exoscale [Compute Instances](https://community.exoscale.com/product/compute/instances/index.md).

Corresponding resource: [exoscale_compute_instance](https://community.exoscale.com/reference/terraform/provider/resources/compute_instance/index.md).

## Example Usage

```terraform
data "exoscale_compute_instance_list" "my_compute_instance_list" {
  zone = "ch-gva-2"

  type = "standard.micro"

  name = "/.*ubuntu.*/"

  labels = {
    "customer" = "/.*bank.*/"
    "contract" = "premium-support"
  }
}

output "my_compute_instance_ids" {
  value = join("\n", formatlist(
    "%s", data.exoscale_compute_instance_list.my_compute_instance_list.instances.*.id
  ))
}
```

Please refer to the [examples](https://github.com/exoscale/terraform-provider-exoscale/tree/master/examples/)
directory for complete configuration examples.


## Schema

### Required

- `zone` (String) The Exoscale [Zone](https://www.exoscale.com/datacenters/) name.

### Optional

- `created_at` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `deploy_target_id` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `disk_size` (Number) Match against this int
- `enable_secure_boot` (Boolean) Match against this bool
- `enable_tpm` (Boolean) Match against this bool
- `id` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `ipv6` (Boolean) Match against this bool
- `ipv6_address` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `labels` (Map of String) Match against key/values. Keys are matched exactly, while values may be matched as a regex if you supply a string that begins and ends with "/"
- `manager_id` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `manager_type` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `name` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `public_ip_address` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `reverse_dns` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `ssh_key` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `state` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `template_id` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts))
- `type` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.
- `user_data` (String) Match against this string. If you supply a string that begins and ends with a "/" it will be matched as a regex.

### Read-Only

- `instances` (Attributes List) The list of [exoscale_compute_instance](https://community.exoscale.com/reference/terraform/provider/data-sources/compute_instance/index.md). (see [below for nested schema](#nestedatt--instances))

<a id="nestedblock--timeouts"></a>
### Nested Schema for `timeouts`

Optional:

- `read` (String) A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) 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.


<a id="nestedatt--instances"></a>
### Nested Schema for `instances`

Read-Only:

- `anti_affinity_group_ids` (Set of String) The list of attached [exoscale_anti_affinity_group](https://community.exoscale.com/reference/terraform/provider/resources/anti_affinity_group/index.md) (IDs).
- `created_at` (String) The compute instance creation date.
- `deploy_target_id` (String) A deploy target ID.
- `disk_size` (Number) The instance disk size (GiB).
- `elastic_ip_ids` (Set of String) The list of attached [exoscale_elastic_ip](https://community.exoscale.com/reference/terraform/provider/resources/elastic_ip/index.md) (IDs).
- `enable_secure_boot` (Boolean) Indicates if the instance has secure boot enabled.
- `enable_tpm` (Boolean) Indicates if the instance has TPM enabled.
- `id` (String) The compute instance ID.
- `ipv6` (Boolean) Whether IPv6 is enabled on the instance.
- `ipv6_address` (String) The instance (main network interface) IPv6 address (if enabled).
- `labels` (Map of String) A map of key/value labels.
- `manager_id` (String) The instance manager ID, if any.
- `manager_type` (String) The instance manager type (instance pool, SKS node pool, etc.), if any.
- `name` (String) The instance name.
- `private_network_ids` (Set of String) The list of attached [exoscale_private_network](https://community.exoscale.com/reference/terraform/provider/resources/private_network/index.md) (IDs).
- `public_ip_address` (String) The instance (main network interface) IPv4 address.
- `reverse_dns` (String) Domain name for reverse DNS record.
- `security_group_ids` (Set of String) The list of attached [exoscale_security_group](https://community.exoscale.com/reference/terraform/provider/resources/security_group/index.md) (IDs).
- `ssh_key` (String, Deprecated) The [exoscale_ssh_key](https://community.exoscale.com/reference/terraform/provider/resources/ssh_key/index.md) (name) authorized on the instance.
- `ssh_keys` (Set of String) The list of [exoscale_ssh_key](https://community.exoscale.com/reference/terraform/provider/resources/ssh_key/index.md) (name) authorized on the instance.
- `state` (String) The instance state.
- `template_id` (String) The instance [exoscale_template](https://community.exoscale.com/reference/terraform/provider/data-sources/template/index.md) ID.
- `type` (String) The instance type.
- `user_data` (String) The instance [cloud-init](http://cloudinit.readthedocs.io/en/latest/) configuration.
- `zone` (String) The Exoscale [Zone](https://www.exoscale.com/datacenters/) name.



