---
page_title: "Fastly: fastly_compute_acls"
sidebar_current: "docs-fastly-datasource-fastly_compute_acls"
description: |-
  Get a list of Fastly Compute ACLs.
---

# fastly_compute_acls

Use this data source to retrieve a list of [Fastly Compute ACLs][1].

## Example Usage

```terraform
data "fastly_compute_acls" "example" {}

output "fastly_compute_acls_all" {
  value = data.fastly_compute_acls.example.acls
}

output "fastly_compute_acls_filtered" {
  # Example: get the ID of the ACL named "My ACL"
  value = one([
    for acl in data.fastly_compute_acls.example.acls :
    acl.id if acl.name == "My ACL"
  ])
}
```

## Outputs

- `acls` — a list of objects with:
  - `id` — the ACL ID.
  - `name` — the name of the ACL.

[1]: https://www.fastly.com/documentation/reference/api/compute-acls/

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `acls` (Set of Object) List of all Compute ACLs. (see [below for nested schema](#nestedatt--acls))
- `id` (String) The ID of this resource.

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

Read-Only:

- `id` (String)
- `name` (String)
