Files
Simon Roberts 26dbaa2d6e Enable terraform_naming_convention in tflint (#3930)
* Draft terraform_naming_convention

* Two fast/stages fixes for terraform_naming_convention

* Disable terraform_naming_convention for resources for now

* module fixes for terraform_naming_convention

* tfdoc

* Remove "moved" from recipe and needs-fixing

* Fix moved for spoke_ra

* fix tests

* Use default (snake_case) for resources

* factory.terraform_data.project-preconditions

* First-pass migration of resources + tests

* Fix tests/modules/organization

* Require snake_case for variables; Add annotations for _testing

* permit _fast_debug variable

* Fix net_vpc_factory and net_vpc_firewall tests

* tfdoc addons and recipe

* Fix more tests

* Fix some net-global -> net_global tests

---------

Co-authored-by: Ludovico Magnocavallo <ludomagno@google.com>
2026-05-06 06:06:26 +00:00

172 lines
4.4 KiB
YAML

# Copyright 2025 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:
google_compute_firewall.allow_admins[0]:
allow:
- ports: []
protocol: all
deny: []
description: Access from the admin subnet to all subnets.
disabled: null
log_config: []
name: dev-spoke-0-ingress-admins
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
source_service_accounts: null
source_tags: null
target_service_accounts: null
target_tags: null
timeouts: null
google_compute_firewall.allow_tag_http[0]:
allow:
- ports:
- '80'
protocol: tcp
deny: []
description: Allow http to machines with matching tags.
disabled: null
log_config: []
name: dev-spoke-0-ingress-tag-http
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
source_service_accounts: null
source_tags: null
target_service_accounts: null
target_tags:
- http-server
timeouts: null
google_compute_firewall.allow_tag_https[0]:
allow:
- ports:
- '443'
protocol: tcp
deny: []
description: Allow http to machines with matching tags.
disabled: null
log_config: []
name: dev-spoke-0-ingress-tag-https
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
source_service_accounts: null
source_tags: null
target_service_accounts: null
target_tags:
- https-server
timeouts: null
google_compute_firewall.allow_tag_ssh[0]:
allow:
- ports:
- '22'
protocol: tcp
deny: []
description: Allow SSH to machines with matching tags.
disabled: null
log_config: []
name: dev-spoke-0-ingress-tag-ssh
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
source_service_accounts: null
source_tags: null
target_service_accounts: null
target_tags:
- ssh
timeouts: null
google_compute_firewall.custom_rules["egress-test"]:
allow:
- ports: []
protocol: all
deny: []
description: Allow egress.
destination_ranges:
- 10.0.0.0/8
- 10.0.0.1/32
- 172.16.10.0/12
- 192.168.0.0/24
- 8.8.8.8
direction: EGRESS
disabled: false
log_config: []
name: egress-test
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
- 10.0.0.1/32
- 172.16.10.0/12
- 192.168.0.0/24
- 8.8.8.8
source_service_accounts: null
source_tags: null
target_service_accounts:
- serviceAccount:test@test-project.iam.gserviceaccount.com
target_tags: null
timeouts: null
google_compute_firewall.custom_rules["ingress-test"]:
allow:
- ports: []
protocol: all
deny: []
description: Allow ingress.
destination_ranges:
- 10.0.0.0/8
- 10.0.0.1/32
- 172.16.10.0/12
- 192.168.0.0/24
- 8.8.8.8
direction: INGRESS
disabled: false
log_config: []
name: ingress-test
network: projects/foo-dev-net-spoke-0/global/networks/dev-spoke-0
params: []
priority: 1000
project: foo-test-0
source_ranges:
- 10.0.0.0/8
- 10.0.0.1/32
- 172.16.10.0/12
- 192.168.0.0/24
- 8.8.8.8
source_service_accounts:
- serviceAccount:test@test-project.iam.gserviceaccount.com
source_tags: null
target_service_accounts:
- serviceAccount:test@test-project.iam.gserviceaccount.com
target_tags: null
timeouts: null
counts:
google_compute_firewall: 6
modules: 0
resources: 6