Skip to content

Commit 4da3558

Browse files
committed
fix: added back the registry version
1 parent 68227a7 commit 4da3558

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

examples/internal-lb-cloud-run/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ module "backend-service-region-b" {
9393
}
9494

9595
module "internal-lb-http-backend" {
96-
source = "../../modules/backend"
97-
#version = "~> 12.0"
96+
source = "terraform-google-modules/lb-http/google//modules/backend"
97+
version = "~> 12.0"
9898

9999
project_id = var.project_id
100100
name = "int-lb-http-backend"
@@ -108,8 +108,8 @@ module "internal-lb-http-backend" {
108108
}
109109

110110
module "internal-lb-http-frontend" {
111-
source = "../../modules/frontend"
112-
#version = "~> 12.0"
111+
source = "terraform-google-modules/lb-http/google//modules/frontend"
112+
version = "~> 12.0"
113113

114114
project_id = var.project_id
115115
name = "int-lb-http-frontend"

modules/frontend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This module creates `HTTP(S) forwarding rule` and its dependencies. This modules
1919
| http\_port | The port for the HTTP load balancer | `number` | `80` | no |
2020
| https\_port | The port for the HTTPS load balancer | `number` | `443` | no |
2121
| https\_redirect | Set to `true` to enable https redirect on the lb. | `bool` | `false` | no |
22-
| internal\_forwarding\_rule\_subnetworks | List of fully-qualified subnetwork IDs (e.g., projects/my-project/regions/us-central1/subnetworks/my-subnet). | `list(string)` | `[]` | no |
22+
| internal\_forwarding\_rule\_configs | Map of internal managed forwarding rule configs. One of 'address' or 'subnetwork' is required for each. | <pre>map(object({<br> address = optional(string)<br> subnetwork = optional(string)<br> }))</pre> | `{}` | no |
2323
| ipv6\_address | An existing IPv6 address to use (the actual IP address value) | `string` | `null` | no |
2424
| labels | The labels to attach to resources created by this module | `map(string)` | `{}` | no |
2525
| load\_balancing\_scheme | Load balancing scheme type (EXTERNAL for classic external load balancer, EXTERNAL\_MANAGED for Envoy-based load balancer, and INTERNAL\_SELF\_MANAGED for traffic director) | `string` | `"EXTERNAL_MANAGED"` | no |

modules/frontend/metadata.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,14 @@ spec:
187187
- name: http_keep_alive_timeout_sec
188188
description: Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds).
189189
varType: number
190-
- name: internal_forwarding_rule_subnetworks
191-
description: List of fully-qualified subnetwork IDs (e.g., projects/my-project/regions/us-central1/subnetworks/my-subnet).
192-
varType: list(string)
193-
defaultValue: []
190+
- name: internal_forwarding_rule_configs
191+
description: Map of internal managed forwarding rule configs. One of 'address' or 'subnetwork' is required for each.
192+
varType: |-
193+
map(object({
194+
address = optional(string)
195+
subnetwork = optional(string)
196+
}))
197+
defaultValue: {}
194198
outputs:
195199
- name: external_ip
196200
description: The external IPv4 assigned to the global fowarding rule.

modules/frontend/variables.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,11 @@ variable "http_keep_alive_timeout_sec" {
199199
default = null
200200
}
201201

202-
variable "internal_forwarding_rule_subnetworks" {
203-
description = "List of fully-qualified subnetwork IDs (e.g., projects/my-project/regions/us-central1/subnetworks/my-subnet)."
204-
type = list(string)
205-
default = []
206-
}
207-
208202
variable "internal_forwarding_rule_configs" {
209203
description = "Map of internal managed forwarding rule configs. One of 'address' or 'subnetwork' is required for each."
210204
type = map(object({
211205
address = optional(string)
212206
subnetwork = optional(string)
213207
}))
214208
default = {}
215-
}
209+
}

0 commit comments

Comments
 (0)