Boilerplates

This commit is contained in:
Simone Ruffilli 2021-10-14 18:01:32 +02:00
parent 9aadab4431
commit 89f045d3db
20 changed files with 82 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west3
ip_cidr_range: 10.0.0.0/24
description: Sample Subnet in project project-dev-a, vpc-alpha

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west3
ip_cidr_range: 10.0.1.0/24
description: Sample Subnet in project project-dev-a, vpc-alpha

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west4
ip_cidr_range: 10.0.2.0/24
description: Sample Subnet in project project-dev-b, vpc-beta

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west4
ip_cidr_range: 10.0.3.0/24
description: Sample Subnet in project project-dev-b, vpc-gamma

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west3
ip_cidr_range: 10.0.0.0/24
description: Sample Subnet in project project-prod-a, vpc-alpha

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west3
ip_cidr_range: 10.0.1.0/24
description: Sample Subnet in project project-prod-a, vpc-alpha

View File

@ -1,3 +1,19 @@
/**
* Copyright 2021 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.
*/
variable "config_folder" {
description = "Relative path of the folder containing the hierarchical firewall configuration"
type = string

View File

@ -1,3 +1,19 @@
/**
* Copyright 2021 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.
*/
output "vpc-firewall-rules" {
description = "Generated VPC Firewall Rules"
value = merge(google_compute_firewall.rules-allow, google_compute_firewall.rules-deny)

View File

@ -1,3 +1,19 @@
/**
* Copyright 2021 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.
*/
variable "config_folder" {
description = "Relative path of the folder containing the hierarchical firewall configuration"
type = string

View File

@ -1,3 +1,5 @@
# skip boilerplate check
allow-ssh-from-onprem:
description: Enable SSH for onprem ranges
direction: INGRESS

View File

@ -1,3 +1,5 @@
# skip boilerplate check
allow-icmp:
description: Enable ICMP for all hosts
direction: INGRESS

View File

@ -1,3 +1,5 @@
# skip boilerplate check
example:
- 10.0.0.0/24
- 10.0.10.0/24

View File

@ -1,2 +1,4 @@
# skip boilerplate check
example:
- example-service-account@resource-factory-playground.iam.gserviceaccount.com

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west1
ip_cidr_range: 10.0.0.0/24
description: Sample Subnet in project project-a, vpc-a

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west3
ip_cidr_range: 10.0.1.0/24
description: Sample Subnet in project project-a, vpc-a

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west4
ip_cidr_range: 10.0.2.0/24
description: Sample Subnet in project project-a, vpc-b

View File

@ -1,3 +1,5 @@
# skip boilerplate check
region: europe-west4
ip_cidr_range: 172.16.0.0/24
description: Sample Subnet in project project-b, vpc-x

View File

@ -1,3 +1,5 @@
# skip boilerplate check
allow-healthchecks:
description: "Allow traffic from healthcheck"
direction: INGRESS

View File

@ -1,3 +1,5 @@
# skip boilerplate check
example:
- 10.0.0.0/24
- 10.0.10.0/24

View File

@ -1,2 +1,4 @@
# skip boilerplate check
couchbase:
- example-service-account@resource-factory-playground.iam.gserviceaccount.com