Skip to content

Commit

Permalink
Terraform: Cloud DNS logging
Browse files Browse the repository at this point in the history
  • Loading branch information
drebes committed Mar 30, 2019
1 parent 3ae614f commit 4cd8d76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions products/dns/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions templates/terraform/examples/dns_policy_basic.tf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4cd8d76

Please sign in to comment.