Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created June 7, 2024 16:38
Show Gist options
  • Select an option

  • Save KyMidd/e0b5f9b5a980cbfe5abb641101fead1e to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/e0b5f9b5a980cbfe5abb641101fead1e to your computer and use it in GitHub Desktop.
# Filter for the GW hosts
locals {
server_names = length(local.rg) == 0 ? [] : [for vm in jsondecode(data.azapi_resource_list.server[0].output).value[*].name : vm if can(regex("gw", vm))]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment