Add cloud logging option

This commit is contained in:
Julio Castillo
2022-10-25 11:11:32 +02:00
parent 625eeb4d7f
commit ab11920bee
2 changed files with 5 additions and 2 deletions

View File

@@ -15,9 +15,8 @@
*/
locals {
_recordsets = var.recordsets == null ? {} : var.recordsets
recordsets = {
for key, attrs in local._recordsets :
for key, attrs in var.recordsets :
key => merge(attrs, zipmap(["type", "name"], split(" ", key)))
}
zone = (
@@ -100,6 +99,9 @@ resource "google_dns_managed_zone" "non-public" {
}
}
cloud_logging_config {
enable_logging = var.enable_logging
}
}
data "google_dns_managed_zone" "public" {

View File

@@ -22,6 +22,7 @@ variable "client_networks" {
description = "List of VPC self links that can see this zone."
type = list(string)
default = []
nullable = false
}
variable "default_key_specs_key" {