Retrieve all supported DigitalOcean regions with digitalocean_regions
mainUse the digitalocean_regions data source to fetch information about all supported DigitalOcean regions. You can use filter blocks to narrow down results (e.g., finding only available regions) and sort blocks to order the output. If no filters are applied, the data source returns all regions.
Note: If you already know the specific slug of a region, use the digitalocean_region data source instead to retrieve metadata for that single region.
data "digitalocean_regions" "available" {
filter {
key = "available"
values = ["true"]
}
}