Skip to content

Commit

Permalink
Terraform: Cloud DNS logging (#1598)
Browse files Browse the repository at this point in the history
Merged PR #1598.
  • Loading branch information
drebes authored and modular-magician committed Apr 1, 2019
1 parent 3ae614f commit 5a24edf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/terraform-beta
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 5a24edf

Please sign in to comment.