» Data Source: hcloud_locations

Provides a list of available Hetzner Cloud Locations. This resource may be useful to create highly available infrastructure, distributed across several locations.

» Example Usage

data "hcloud_locations" "ds" {
}

resource "hcloud_server" "workers" {
  name = "node1"
  image = "debian-9"
  server_type = "cx31"
  location = "${element(data.hcloud_locations.ds.names, count.index)}"

  count = 3
}

» Attributes Reference

  • location_ids - (list) List of unique location identifiers.
  • names - (list) List of location names.
  • descriptions - (list) List of all location descriptions.