diff --git a/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-a.yaml b/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-a.yaml index 61844e76..13973106 100644 --- a/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-a.yaml +++ b/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-a.yaml @@ -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 diff --git a/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-b.yaml b/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-b.yaml index 64e5ba7b..fb859e72 100644 --- a/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-b.yaml +++ b/factories/example-environments/dev/project-dev-a/vpc-alpha/subnet-alpha-b.yaml @@ -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 diff --git a/factories/example-environments/dev/project-dev-b/vpc-beta/subnet-beta-a.yaml b/factories/example-environments/dev/project-dev-b/vpc-beta/subnet-beta-a.yaml index 276b5063..c3512f8c 100644 --- a/factories/example-environments/dev/project-dev-b/vpc-beta/subnet-beta-a.yaml +++ b/factories/example-environments/dev/project-dev-b/vpc-beta/subnet-beta-a.yaml @@ -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 diff --git a/factories/example-environments/dev/project-dev-b/vpc-gamma/subnet-gamma-a.yaml b/factories/example-environments/dev/project-dev-b/vpc-gamma/subnet-gamma-a.yaml index 2cf95c16..9a9b8e17 100644 --- a/factories/example-environments/dev/project-dev-b/vpc-gamma/subnet-gamma-a.yaml +++ b/factories/example-environments/dev/project-dev-b/vpc-gamma/subnet-gamma-a.yaml @@ -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 diff --git a/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-a.yaml b/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-a.yaml index 7d9d70e0..26bb4bdd 100644 --- a/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-a.yaml +++ b/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-a.yaml @@ -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 diff --git a/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-b.yaml b/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-b.yaml index 216fd01e..cb1a77a1 100644 --- a/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-b.yaml +++ b/factories/example-environments/prod/project-prod-a/vpc-alpha/subnet-alpha-b.yaml @@ -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 diff --git a/factories/firewall-hierarchical-policies/variables.tf b/factories/firewall-hierarchical-policies/variables.tf index 4b686f8d..503a2e01 100644 --- a/factories/firewall-hierarchical-policies/variables.tf +++ b/factories/firewall-hierarchical-policies/variables.tf @@ -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 diff --git a/factories/firewall-vpc-rules/nested/outputs.tf b/factories/firewall-vpc-rules/nested/outputs.tf index 041a8b8e..36b9e166 100644 --- a/factories/firewall-vpc-rules/nested/outputs.tf +++ b/factories/firewall-vpc-rules/nested/outputs.tf @@ -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) diff --git a/factories/firewall-vpc-rules/nested/variables.tf b/factories/firewall-vpc-rules/nested/variables.tf index 4b686f8d..503a2e01 100644 --- a/factories/firewall-vpc-rules/nested/variables.tf +++ b/factories/firewall-vpc-rules/nested/variables.tf @@ -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 diff --git a/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/0987654321-foobar.yaml b/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/0987654321-foobar.yaml index 539694a5..49385718 100644 --- a/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/0987654321-foobar.yaml +++ b/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/0987654321-foobar.yaml @@ -1,3 +1,5 @@ +# skip boilerplate check + allow-ssh-from-onprem: description: Enable SSH for onprem ranges direction: INGRESS diff --git a/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/org.yaml b/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/org.yaml index 2183fc05..649561b9 100644 --- a/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/org.yaml +++ b/tests/factories/firewall_hierarchical_policies/fixture/conf/rules/1234567890/org.yaml @@ -1,3 +1,5 @@ +# skip boilerplate check + allow-icmp: description: Enable ICMP for all hosts direction: INGRESS diff --git a/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/cidrs.yaml b/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/cidrs.yaml index 4f4e158f..789ea960 100644 --- a/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/cidrs.yaml +++ b/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/cidrs.yaml @@ -1,3 +1,5 @@ +# skip boilerplate check + example: - 10.0.0.0/24 - 10.0.10.0/24 diff --git a/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/service_accounts.yaml b/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/service_accounts.yaml index 697be919..e4c68edd 100644 --- a/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/service_accounts.yaml +++ b/tests/factories/firewall_hierarchical_policies/fixture/conf/templates/service_accounts.yaml @@ -1,2 +1,4 @@ +# skip boilerplate check + example: - example-service-account@resource-factory-playground.iam.gserviceaccount.com diff --git a/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-a.yaml b/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-a.yaml index 39a26145..9cf4a1e2 100644 --- a/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-a.yaml +++ b/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-a.yaml @@ -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 diff --git a/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-b.yaml b/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-b.yaml index 212bf5ea..f8dab01a 100644 --- a/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-b.yaml +++ b/tests/factories/subnets/fixture/conf/project-a/vpc-a/subnet-b.yaml @@ -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 diff --git a/tests/factories/subnets/fixture/conf/project-a/vpc-b/subnet-one.yaml b/tests/factories/subnets/fixture/conf/project-a/vpc-b/subnet-one.yaml index 321557a3..85b5607b 100644 --- a/tests/factories/subnets/fixture/conf/project-a/vpc-b/subnet-one.yaml +++ b/tests/factories/subnets/fixture/conf/project-a/vpc-b/subnet-one.yaml @@ -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 diff --git a/tests/factories/subnets/fixture/conf/project-b/vpc-x/subnet-alpha.yaml b/tests/factories/subnets/fixture/conf/project-b/vpc-x/subnet-alpha.yaml index c451b0f8..0af68295 100644 --- a/tests/factories/subnets/fixture/conf/project-b/vpc-x/subnet-alpha.yaml +++ b/tests/factories/subnets/fixture/conf/project-b/vpc-x/subnet-alpha.yaml @@ -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 diff --git a/tests/factories/vpc_firewall/nested/fixture/conf/rules/resource-factory-playground/vpc-a/ingress-loadbalancers.yaml b/tests/factories/vpc_firewall/nested/fixture/conf/rules/resource-factory-playground/vpc-a/ingress-loadbalancers.yaml index c71b9066..46acd4ea 100644 --- a/tests/factories/vpc_firewall/nested/fixture/conf/rules/resource-factory-playground/vpc-a/ingress-loadbalancers.yaml +++ b/tests/factories/vpc_firewall/nested/fixture/conf/rules/resource-factory-playground/vpc-a/ingress-loadbalancers.yaml @@ -1,3 +1,5 @@ +# skip boilerplate check + allow-healthchecks: description: "Allow traffic from healthcheck" direction: INGRESS diff --git a/tests/factories/vpc_firewall/nested/fixture/conf/templates/cidrs.yaml b/tests/factories/vpc_firewall/nested/fixture/conf/templates/cidrs.yaml index 4f4e158f..789ea960 100644 --- a/tests/factories/vpc_firewall/nested/fixture/conf/templates/cidrs.yaml +++ b/tests/factories/vpc_firewall/nested/fixture/conf/templates/cidrs.yaml @@ -1,3 +1,5 @@ +# skip boilerplate check + example: - 10.0.0.0/24 - 10.0.10.0/24 diff --git a/tests/factories/vpc_firewall/nested/fixture/conf/templates/service_accounts.yaml b/tests/factories/vpc_firewall/nested/fixture/conf/templates/service_accounts.yaml index b4dd9237..0a28b28b 100644 --- a/tests/factories/vpc_firewall/nested/fixture/conf/templates/service_accounts.yaml +++ b/tests/factories/vpc_firewall/nested/fixture/conf/templates/service_accounts.yaml @@ -1,2 +1,4 @@ +# skip boilerplate check + couchbase: - example-service-account@resource-factory-playground.iam.gserviceaccount.com