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:
@@ -18,9 +18,9 @@ Once deployed do the following to see that it works:
|
||||
|
||||
| name | description | type | required | default |
|
||||
|---|---|:---:|:---:|:---:|
|
||||
| [project_id](variables.tf#L27) | Identifier of the project. | <code>string</code> | ✓ | |
|
||||
| [regions](variables.tf#L32) | List of regions to deploy the proxy in. | <code>list(string)</code> | ✓ | |
|
||||
| [_testing](variables.tf#L17) | Populate this variable to avoid triggering the data source. | <code>object({…})</code> | | <code>null</code> |
|
||||
| [project_id](variables.tf#L28) | Identifier of the project. | <code>string</code> | ✓ | |
|
||||
| [regions](variables.tf#L33) | List of regions to deploy the proxy in. | <code>list(string)</code> | ✓ | |
|
||||
| [_testing](variables.tf#L18) | Populate this variable to avoid triggering the data source. | <code>object({…})</code> | | <code>null</code> |
|
||||
|
||||
## Outputs
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ locals {
|
||||
}
|
||||
backends = [
|
||||
for region in var.regions : {
|
||||
backend = google_compute_region_network_endpoint_group.serverless-negs[region].id
|
||||
backend = google_compute_region_network_endpoint_group.serverless_negs[region].id
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -136,7 +136,7 @@ module "glb" {
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_compute_region_network_endpoint_group" "serverless-negs" {
|
||||
resource "google_compute_region_network_endpoint_group" "serverless_negs" {
|
||||
for_each = toset(var.regions)
|
||||
provider = google-beta
|
||||
name = "serverless-neg-${module.gateways[each.value].gateway_id}"
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
# tflint-ignore: terraform_naming_convention
|
||||
variable "_testing" {
|
||||
description = "Populate this variable to avoid triggering the data source."
|
||||
type = object({
|
||||
|
||||
Reference in New Issue
Block a user