DNS Response Policy module (#1276)
* dns response policy module * tfdoc
This commit is contained in:
committed by
GitHub
parent
603d9045eb
commit
28da881c3f
52
tests/modules/dns_response_policy/examples/nocreate.yaml
Normal file
52
tests/modules/dns_response_policy/examples/nocreate.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.dns-policy.google_dns_response_policy_rule.default["default"]:
|
||||
behavior: null
|
||||
dns_name: '*.googleapis.com.'
|
||||
local_data:
|
||||
- local_datas:
|
||||
- name: '*.googleapis.com.'
|
||||
rrdatas:
|
||||
- restricted.googleapis.com.
|
||||
ttl: null
|
||||
type: CNAME
|
||||
project: myproject
|
||||
response_policy: googleapis
|
||||
rule_name: default
|
||||
module.dns-policy.google_dns_response_policy_rule.default["pubsub"]:
|
||||
behavior: bypassResponsePolicy
|
||||
dns_name: pubsub.googleapis.com.
|
||||
local_data: []
|
||||
project: myproject
|
||||
response_policy: googleapis
|
||||
rule_name: pubsub
|
||||
module.dns-policy.google_dns_response_policy_rule.default["restricted"]:
|
||||
behavior: null
|
||||
dns_name: restricted.googleapis.com.
|
||||
local_data:
|
||||
- local_datas:
|
||||
- name: restricted.googleapis.com.
|
||||
rrdatas:
|
||||
- 199.36.153.4
|
||||
- 199.36.153.5
|
||||
ttl: null
|
||||
type: A
|
||||
project: myproject
|
||||
response_policy: googleapis
|
||||
rule_name: restricted
|
||||
|
||||
counts:
|
||||
google_dns_response_policy_rule: 3
|
||||
39
tests/modules/dns_response_policy/examples/simple.yaml
Normal file
39
tests/modules/dns_response_policy/examples/simple.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 2023 Google LLC
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
values:
|
||||
module.dns-policy.google_dns_response_policy.default[0]:
|
||||
gke_clusters: []
|
||||
networks:
|
||||
- network_url: projects/xxx/global/networks/aaa
|
||||
project: myproject
|
||||
response_policy_name: googleapis
|
||||
module.dns-policy.google_dns_response_policy_rule.default["pubsub"]:
|
||||
behavior: null
|
||||
dns_name: pubsub.googleapis.com.
|
||||
local_data:
|
||||
- local_datas:
|
||||
- name: pubsub.googleapis.com.
|
||||
rrdatas:
|
||||
- 199.36.153.4
|
||||
- 199.36.153.5
|
||||
ttl: null
|
||||
type: A
|
||||
project: myproject
|
||||
response_policy: googleapis
|
||||
rule_name: pubsub
|
||||
|
||||
counts:
|
||||
google_dns_response_policy: 1
|
||||
google_dns_response_policy_rule: 1
|
||||
Reference in New Issue
Block a user