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>
This commit is contained in:
Simon Roberts
2026-05-06 16:06:26 +10:00
committed by GitHub
parent ba56d9afbc
commit 26dbaa2d6e
83 changed files with 570 additions and 284 deletions

View File

@@ -101,7 +101,12 @@ module "service-accounts" {
tag_bindings = each.value.tag_bindings
}
module "service_accounts-iam" {
moved {
from = module.service_accounts-iam
to = module.service-accounts-iam
}
module "service-accounts-iam" {
source = "../iam-service-account"
for_each = {
for k in local.projects_service_accounts :

View File

@@ -95,7 +95,12 @@ locals {
]...)
}
resource "terraform_data" "project-preconditions" {
moved {
from = terraform_data.project-preconditions
to = terraform_data.project_preconditions
}
resource "terraform_data" "project_preconditions" {
lifecycle {
precondition {
condition = alltrue([