Update main.tf

This commit is contained in:
Ludovico Magnocavallo 2022-02-01 19:02:15 +01:00 committed by GitHub
parent c6310173a4
commit ac36d588bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -21,14 +21,11 @@ locals {
)
}
data "google_client_config" "current" {
}
data "google_client_config" "current" {}
data "http" "addresses" {
for_each = toset(var.regions)
url = "${local.url}/regions/${each.key}/addresses?filter=purpose%20%3D%20%22DNS_RESOLVER%22"
# Optional request headers
request_headers = {
Authorization = "Bearer ${data.google_client_config.current.access_token}"
}