From 4cd8d76d63dcaf96d4849018df7c9f58442a86ef Mon Sep 17 00:00:00 2001 From: Roberto Jung Drebes Date: Fri, 15 Mar 2019 14:47:58 +0100 Subject: [PATCH 1/2] Terraform: Cloud DNS logging --- products/dns/api.yaml | 8 ++++++++ templates/terraform/examples/dns_policy_basic.tf.erb | 2 ++ 2 files changed, 10 insertions(+) diff --git a/products/dns/api.yaml b/products/dns/api.yaml index 6fe26c65e725..aa590cbc4ba2 100644 --- a/products/dns/api.yaml +++ b/products/dns/api.yaml @@ -199,6 +199,14 @@ objects: send_empty_value: true update_verb: :PATCH update_url: 'projects/{{project}}/policies/{{name}}' + - !ruby/object:Api::Type::Boolean + name: 'enableLogging' + description: | + Controls whether logging is enabled for the networks bound to this policy. + Defaults to no logging if not set. + send_empty_value: true + update_verb: :PATCH + update_url: 'projects/{{project}}/policies/{{name}}' - !ruby/object:Api::Type::Integer name: 'id' description: Unique identifier for the resource; defined by the server. diff --git a/templates/terraform/examples/dns_policy_basic.tf.erb b/templates/terraform/examples/dns_policy_basic.tf.erb index e79fff561db8..1eeb9e08b57a 100644 --- a/templates/terraform/examples/dns_policy_basic.tf.erb +++ b/templates/terraform/examples/dns_policy_basic.tf.erb @@ -4,6 +4,8 @@ resource "google_dns_policy" "<%= ctx[:primary_resource_id] %>" { name = "<%= ctx[:vars]['policy_name'] %>" enable_inbound_forwarding = true + enable_logging = true + alternative_name_server_config { target_name_servers { ipv4_address = "172.16.1.10" From cd1f8cf0b24c9d99b2731fcf4abaf49d19124eab Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Mon, 1 Apr 2019 16:58:16 +0000 Subject: [PATCH 2/2] Update tracked submodules -> HEAD on Mon Apr 1 16:58:16 UTC 2019 Tracked submodules are build/terraform-beta build/terraform-mapper build/terraform build/ansible build/inspec. --- build/terraform-beta | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/terraform-beta b/build/terraform-beta index 9d1ea6206a7c..c210ff84ff42 160000 --- a/build/terraform-beta +++ b/build/terraform-beta @@ -1 +1 @@ -Subproject commit 9d1ea6206a7c5192b09e60ab12e31b7598c8f08f +Subproject commit c210ff84ff42b02b8f2a4a16d0a7899444298748