You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 line
302B

  1. resource "hcloud_server" "vms" {
  2. name = each.key
  3. image = var.server_image
  4. server_type = var.default_server_type
  5. location = var.default_location
  6. ssh_keys = [for value in hcloud_ssh_key.ssh_keys: value.id]
  7. lifecycle {
  8. ignore_changes = [
  9. ssh_keys,
  10. ]
  11. }
  12. for_each = var.vms
  13. }