From c1b52b300cc9d6b902a2f76e86b1d1a721a91a57 Mon Sep 17 00:00:00 2001 From: Dave Gulli Date: Mon, 11 Sep 2023 20:41:25 +1000 Subject: [PATCH] trying to fix linting --- modules/net-vpc/README.md | 9 ++++++++- modules/net-vpc/outputs.tf | 10 +++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/modules/net-vpc/README.md b/modules/net-vpc/README.md index 5a0c5683..cfd120ed 100644 --- a/modules/net-vpc/README.md +++ b/modules/net-vpc/README.md @@ -287,7 +287,7 @@ Along with common private subnets module supports creation more service specific - [Proxy-only subnets](https://cloud.google.com/load-balancing/docs/proxy-only-subnets) for Regional HTTPS Internal HTTPS Load Balancers - [Private Service Connect](https://cloud.google.com/vpc/docs/private-service-connect#psc-subnets) subnets -- [Global Proxy-only subnet] (https://cloud.google.com/load-balancing/docs/proxy-only-subnets#envoy-lb) with purpose for Cross-region internal Application Load Balancers +- [Global Proxy-only subnets](https://cloud.google.com/load-balancing/docs/proxy-only-subnets#envoy-lb) with purpose for Cross-region internal Application Load Balancers ```hcl module "vpc" { @@ -395,6 +395,13 @@ flow_logs: # enable, set to empty map to use defaults filter_expression: null ``` +```yaml +# tftest-file id=subnet-global-proxy path=config/subnets/subnet-global-proxy.yaml +region: europe-west4 +ip_cidr_range: 10.0.3.0/24 +purpose: GLOBAL_MANAGED_PROXY +``` + ```yaml # tftest-file id=subnet-proxy path=config/subnets/subnet-proxy.yaml region: europe-west4 diff --git a/modules/net-vpc/outputs.tf b/modules/net-vpc/outputs.tf index 2462c48b..46e04b0b 100644 --- a/modules/net-vpc/outputs.tf +++ b/modules/net-vpc/outputs.tf @@ -128,6 +128,11 @@ output "subnets" { value = { for k, v in google_compute_subnetwork.subnetwork : k => v } } +output "subnets_global_proxy_only" { + description = "Cross-region internal L7 ILB resources" + value = { for k, v in google_compute_subnetwork.global_proxy_only : k => v } +} + output "subnets_proxy_only" { description = "L7 ILB or L7 Regional LB subnet resources." value = { for k, v in google_compute_subnetwork.proxy_only : k => v } @@ -136,9 +141,4 @@ output "subnets_proxy_only" { output "subnets_psc" { description = "Private Service Connect subnet resources." value = { for k, v in google_compute_subnetwork.psc : k => v } -} - -output "subnets_global_proxy_only" { - description = "Cross-region internal L7 ILB resources" - value = { for k, v in google_compute_subnetwork.global_proxy_only : k => v } } \ No newline at end of file