Skip to content

Commit 22564fa

Browse files
committed
chore: update connection metadata
1 parent 44c17b2 commit 22564fa

File tree

8 files changed

+309
-279
lines changed

8 files changed

+309
-279
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Make will use bash instead of sh
1919
SHELL := /usr/bin/env bash
2020

21-
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.22
21+
DOCKER_TAG_VERSION_DEVELOPER_TOOLS := 1.23
2222
DOCKER_IMAGE_DEVELOPER_TOOLS := cft/developer-tools
2323
REGISTRY_URL := gcr.io/cloud-foundation-cicd
2424

build/int.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ tags:
132132
- 'integration'
133133
substitutions:
134134
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
135-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.22'
135+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.23'

build/lint.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ tags:
2121
- 'lint'
2222
substitutions:
2323
_DOCKER_IMAGE_DEVELOPER_TOOLS: 'cft/developer-tools'
24-
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.22'
24+
_DOCKER_TAG_VERSION_DEVELOPER_TOOLS: '1.23'

metadata.yaml

Lines changed: 101 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,50 @@ spec:
7676
location: examples/user-managed-google-managed-ssl
7777
interfaces:
7878
variables:
79+
- name: project
80+
description: The project to deploy to, if not set the default provider project is used.
81+
varType: string
82+
required: true
83+
- name: name
84+
description: Name for the forwarding rule and prefix for supporting resources
85+
varType: string
86+
required: true
87+
- name: create_address
88+
description: Create a new global IPv4 address
89+
varType: bool
90+
defaultValue: true
7991
- name: address
8092
description: Existing IPv4 address to use (the actual IP address value)
8193
varType: string
94+
- name: enable_ipv6
95+
description: Enable IPv6 address on the CDN load-balancer
96+
varType: bool
97+
defaultValue: false
98+
- name: create_ipv6_address
99+
description: Allocate a new IPv6 address. Conflicts with "ipv6_address" - if both specified, "create_ipv6_address" takes precedence.
100+
varType: bool
101+
defaultValue: false
102+
- name: ipv6_address
103+
description: An existing IPv6 address to use (the actual IP address value)
104+
varType: string
105+
- name: firewall_networks
106+
description: Names of the networks to create firewall rules in
107+
varType: list(string)
108+
defaultValue:
109+
- default
110+
- name: firewall_projects
111+
description: Names of the projects to create firewall rules in
112+
varType: list(string)
113+
defaultValue:
114+
- default
115+
- name: target_tags
116+
description: List of target tags for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified.
117+
varType: list(string)
118+
defaultValue: []
119+
- name: target_service_accounts
120+
description: List of target service accounts for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified.
121+
varType: list(string)
122+
defaultValue: []
82123
- name: backends
83124
description: Map backend indices to list of backend maps.
84125
varType: |-
@@ -186,67 +227,62 @@ spec:
186227
}))
187228
}))
188229
required: true
189-
- name: certificate
190-
description: Content of the SSL certificate. Requires `ssl` to be set to `true` and `create_ssl_certificate` set to `true`
191-
varType: string
192-
- name: certificate_map
193-
description: Certificate Map ID in format projects/{project}/locations/global/certificateMaps/{name}. Identifies a certificate map associated with the given target proxy. Requires `ssl` to be set to `true`
230+
- name: create_url_map
231+
description: Set to `false` if url_map variable is provided.
232+
varType: bool
233+
defaultValue: true
234+
- name: url_map
235+
description: The url_map resource to use. Default is to send all traffic to first backend.
194236
varType: string
195-
- name: create_address
196-
description: Create a new global IPv4 address
237+
- name: http_forward
238+
description: Set to `false` to disable HTTP port 80 forward
197239
varType: bool
198240
defaultValue: true
199-
- name: create_ipv6_address
200-
description: Allocate a new IPv6 address. Conflicts with "ipv6_address" - if both specified, "create_ipv6_address" takes precedence.
241+
- name: ssl
242+
description: "Set to `true` to enable SSL support. If `true` then at least one of these are required: 1) `ssl_certificates` OR 2) `create_ssl_certificate` set to `true` and `private_key/certificate` OR 3) `managed_ssl_certificate_domains`, OR 4) `certificate_map`"
201243
varType: bool
202244
defaultValue: false
203245
- name: create_ssl_certificate
204246
description: If `true`, Create certificate using `private_key/certificate`
205247
varType: bool
206248
defaultValue: false
207-
- name: create_url_map
208-
description: Set to `false` if url_map variable is provided.
249+
- name: ssl_certificates
250+
description: SSL cert self_link list. Requires `ssl` to be set to `true`
251+
varType: list(string)
252+
defaultValue: []
253+
- name: private_key
254+
description: Content of the private SSL key. Requires `ssl` to be set to `true` and `create_ssl_certificate` set to `true`
255+
varType: string
256+
- name: certificate
257+
description: Content of the SSL certificate. Requires `ssl` to be set to `true` and `create_ssl_certificate` set to `true`
258+
varType: string
259+
- name: managed_ssl_certificate_domains
260+
description: Create Google-managed SSL certificates for specified domains. Requires `ssl` to be set to `true`
261+
varType: list(string)
262+
defaultValue: []
263+
- name: certificate_map
264+
description: Certificate Map ID in format projects/{project}/locations/global/certificateMaps/{name}. Identifies a certificate map associated with the given target proxy. Requires `ssl` to be set to `true`
265+
varType: string
266+
- name: ssl_policy
267+
description: Selfink to SSL Policy
268+
varType: string
269+
- name: quic
270+
description: Specifies the QUIC override policy for this resource. Set true to enable HTTP/3 and Google QUIC support, false to disable both. Defaults to null which enables support for HTTP/3 only.
209271
varType: bool
210-
defaultValue: true
211272
- name: edge_security_policy
212273
description: The resource URL for the edge security policy to associate with the backend service
213274
varType: string
214-
- name: enable_ipv6
215-
description: Enable IPv6 address on the CDN load-balancer
216-
varType: bool
217-
defaultValue: false
218-
- name: firewall_networks
219-
description: Names of the networks to create firewall rules in
220-
varType: list(string)
221-
defaultValue:
222-
- default
223-
- name: firewall_projects
224-
description: Names of the projects to create firewall rules in
225-
varType: list(string)
226-
defaultValue:
227-
- default
228-
- name: http_forward
229-
description: Set to `false` to disable HTTP port 80 forward
230-
varType: bool
231-
defaultValue: true
232-
- name: http_keep_alive_timeout_sec
233-
description: Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds).
234-
varType: number
235-
- name: http_port
236-
description: The port for the HTTP load balancer
237-
varType: number
238-
defaultValue: 80
239-
- name: https_port
240-
description: The port for the HTTPS load balancer
241-
varType: number
242-
defaultValue: 443
275+
- name: security_policy
276+
description: The resource URL for the security policy to associate with the backend service
277+
varType: string
243278
- name: https_redirect
244279
description: Set to `true` to enable https redirect on the lb.
245280
varType: bool
246281
defaultValue: false
247-
- name: ipv6_address
248-
description: An existing IPv6 address to use (the actual IP address value)
249-
varType: string
282+
- name: random_certificate_suffix
283+
description: Bool to enable/disable random certificate name generation. Set and keep this to true if you need to change the SSL cert.
284+
varType: bool
285+
defaultValue: false
250286
- name: labels
251287
description: The labels to attach to resources created by this module
252288
varType: map(string)
@@ -255,60 +291,24 @@ spec:
255291
description: Load balancing scheme type (EXTERNAL for classic external load balancer, EXTERNAL_MANAGED for Envoy-based load balancer, and INTERNAL_SELF_MANAGED for traffic director)
256292
varType: string
257293
defaultValue: EXTERNAL
258-
- name: managed_ssl_certificate_domains
259-
description: Create Google-managed SSL certificates for specified domains. Requires `ssl` to be set to `true`
260-
varType: list(string)
261-
defaultValue: []
262-
- name: name
263-
description: Name for the forwarding rule and prefix for supporting resources
264-
varType: string
265-
required: true
266294
- name: network
267295
description: Network for INTERNAL_SELF_MANAGED load balancing scheme
268296
varType: string
269297
defaultValue: default
270-
- name: private_key
271-
description: Content of the private SSL key. Requires `ssl` to be set to `true` and `create_ssl_certificate` set to `true`
272-
varType: string
273-
- name: project
274-
description: The project to deploy to, if not set the default provider project is used.
275-
varType: string
276-
required: true
277-
- name: quic
278-
description: Specifies the QUIC override policy for this resource. Set true to enable HTTP/3 and Google QUIC support, false to disable both. Defaults to null which enables support for HTTP/3 only.
279-
varType: bool
280-
- name: random_certificate_suffix
281-
description: Bool to enable/disable random certificate name generation. Set and keep this to true if you need to change the SSL cert.
282-
varType: bool
283-
defaultValue: false
284-
- name: security_policy
285-
description: The resource URL for the security policy to associate with the backend service
286-
varType: string
287298
- name: server_tls_policy
288299
description: The resource URL for the server TLS policy to associate with the https proxy service
289300
varType: string
290-
- name: ssl
291-
description: "Set to `true` to enable SSL support. If `true` then at least one of these are required: 1) `ssl_certificates` OR 2) `create_ssl_certificate` set to `true` and `private_key/certificate` OR 3) `managed_ssl_certificate_domains`, OR 4) `certificate_map`"
292-
varType: bool
293-
defaultValue: false
294-
- name: ssl_certificates
295-
description: SSL cert self_link list. Requires `ssl` to be set to `true`
296-
varType: list(string)
297-
defaultValue: []
298-
- name: ssl_policy
299-
description: Selfink to SSL Policy
300-
varType: string
301-
- name: target_service_accounts
302-
description: List of target service accounts for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified.
303-
varType: list(string)
304-
defaultValue: []
305-
- name: target_tags
306-
description: List of target tags for health check firewall rule. Exactly one of target_tags or target_service_accounts should be specified.
307-
varType: list(string)
308-
defaultValue: []
309-
- name: url_map
310-
description: The url_map resource to use. Default is to send all traffic to first backend.
311-
varType: string
301+
- name: http_port
302+
description: The port for the HTTP load balancer
303+
varType: number
304+
defaultValue: 80
305+
- name: https_port
306+
description: The port for the HTTPS load balancer
307+
varType: number
308+
defaultValue: 443
309+
- name: http_keep_alive_timeout_sec
310+
description: Specifies how long to keep a connection open, after completing a response, while there is no matching traffic (in seconds).
311+
varType: number
312312
outputs:
313313
- name: backend_services
314314
description: The backend service resources.
@@ -328,13 +328,13 @@ spec:
328328
description: The default URL map used by this module.
329329
requirements:
330330
roles:
331-
- level: Project
332-
roles:
333-
- roles/compute.xpnAdmin
334331
- level: Project
335332
roles:
336333
- roles/owner
337334
- roles/storage.admin
335+
- level: Project
336+
roles:
337+
- roles/compute.xpnAdmin
338338
services:
339339
- cloudresourcemanager.googleapis.com
340340
- storage-api.googleapis.com
@@ -343,3 +343,10 @@ spec:
343343
- run.googleapis.com
344344
- iam.googleapis.com
345345
- certificatemanager.googleapis.com
346+
providerVersions:
347+
- source: hashicorp/google
348+
version: ">= 6.0, < 7"
349+
- source: hashicorp/google-beta
350+
version: ">= 6.0, < 7"
351+
- source: hashicorp/random
352+
version: ">= 2.1"

modules/backend/metadata.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ spec:
151151
}))
152152
defaultValue: []
153153
connections:
154-
- source:
155-
source: github.com/terraform-google-modules/terraform-google-vm//modules/mig
156-
version: ~> 12.0
157-
spec:
158-
outputExpr: '{"group": instance_group}'
154+
- source:
155+
source: github.com/terraform-google-modules/terraform-google-vm//modules/mig
156+
version: ">= 12.0"
157+
spec:
158+
outputExpr: "{\"group\": instance_group, \"description\": \"Input created by connection\", \"balancing_mode\": \"UTILIZATION\", \"capacity_scaler\": 1.0, \"max_connections\": 1000, \"max_connections_per_instance\": 1000, \"max_connections_per_endpoint\": 1000, \"max_rate\": 1000, \"max_rate_per_instance\": 100, \"max_rate_per_endpoint\": 100, \"max_utilization\": 0.8}"
159159
- name: serverless_neg_backends
160160
description: The list of serverless backend which serves the traffic.
161161
varType: |-
@@ -167,11 +167,11 @@ spec:
167167
}))
168168
defaultValue: []
169169
connections:
170-
- source:
171-
source: github.com/GoogleCloudPlatform/terraform-google-cloud-run//modules/v2
172-
version: ~> 0.13
173-
spec:
174-
outputExpr: '{"region": location, "service_name": service_name, "type": "cloud-run", "service_version": ""}'
170+
- source:
171+
source: github.com/GoogleCloudPlatform/terraform-google-cloud-run//modules/v2
172+
version: ">= 0.13"
173+
spec:
174+
outputExpr: "{\"region\": location, \"service_name\": service_name, \"type\": \"cloud-run\", \"service_version\": \"\"}"
175175
- name: iap_config
176176
description: Settings for enabling Cloud Identity Aware Proxy Structure.
177177
varType: |-
@@ -290,9 +290,9 @@ spec:
290290
type:
291291
- list
292292
- - object
293-
- host: string
293+
- backend_service: string
294+
host: string
294295
path: string
295-
backend_service: string
296296
requirements:
297297
roles:
298298
- level: Project

0 commit comments

Comments
 (0)