Merge remote-tracking branch 'origin/master' into fast-dev

This commit is contained in:
Ludovico Magnocavallo
2025-12-08 08:09:55 +00:00
354 changed files with 3938 additions and 1212 deletions

View File

@@ -11,6 +11,9 @@ context = {
myuser = "user:test-user@example.com"
myuser2 = "user:test-user2@example.com"
}
kms_keys = {
mykey = "projects/366118655033/locations/europe-west8/keyRings/mykeyring/cryptoKeys/mykey"
}
locations = {
ew8 = "europe-west8"
}
@@ -21,9 +24,10 @@ context = {
"test/one" = "tagValues/1234567890"
}
}
project_id = "$project_ids:test"
id = "dataset_0"
location = "$locations:ew8"
project_id = "$project_ids:test"
id = "dataset_0"
location = "$locations:ew8"
encryption_key = "$kms_keys:mykey"
iam = {
"$custom_roles:myrole_one" = [
"$iam_principals:myuser"

View File

@@ -15,7 +15,8 @@
values:
google_bigquery_dataset.default:
dataset_id: dataset_0
default_encryption_configuration: []
default_encryption_configuration:
- kms_key_name: projects/366118655033/locations/europe-west8/keyRings/mykeyring/cryptoKeys/mykey
default_partition_expiration_ms: null
default_table_expiration_ms: null
delete_contents_on_destroy: false

View File

@@ -0,0 +1,36 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.cf_http.google_cloudfunctions2_function.function:
service_config:
- all_traffic_on_latest_revision: true
available_cpu: '0.166'
available_memory: 256M
binary_authorization_policy: null
direct_vpc_egress: VPC_EGRESS_ALL_TRAFFIC
direct_vpc_network_interface:
- network: projects/xxx/global/networks/aaa
subnetwork: subnet_self_link
tags:
- tag1
- tag2
counts:
google_cloudfunctions2_function: 1
google_project_iam_member: 2
google_service_account: 1
google_storage_bucket_object: 1
modules: 1
resources: 5

View File

@@ -47,7 +47,7 @@ values:
goog-terraform-provisioned: 'true'
timeouts: null
type: hyperdisk-balanced
zone: europe-west8-b
zone: europe-west8-c
module.vm-arm.google_compute_disk.disks["data2"]:
architecture: ARM64
async_primary_disk: []
@@ -82,7 +82,7 @@ values:
goog-terraform-provisioned: 'true'
timeouts: null
type: hyperdisk-balanced
zone: europe-west8-b
zone: europe-west8-c
module.vm-arm.google_compute_instance.default[0]:
advanced_machine_features: []
allow_stopping_for_update: true
@@ -181,7 +181,7 @@ values:
terraform_labels:
goog-terraform-provisioned: 'true'
timeouts: null
zone: europe-west8-b
zone: europe-west8-c
module.vm-arm.google_service_account.service_account[0]:
account_id: tf-vm-test
create_ignore_already_exists: null

View File

@@ -28,7 +28,7 @@ values:
terraform_labels:
goog-terraform-provisioned: 'true'
timeouts: null
zone: europe-west8-b
zone: europe-west8-c
module.vm-disk-options-example.google_compute_disk.boot[0]:
architecture: null
async_primary_disk: []
@@ -62,7 +62,7 @@ values:
goog-terraform-provisioned: 'true'
timeouts: null
type: hyperdisk-balanced
zone: europe-west8-b
zone: europe-west8-c
module.vm-disk-options-example.google_compute_disk.disks["data1"]:
architecture: null
async_primary_disk: []
@@ -94,7 +94,7 @@ values:
goog-terraform-provisioned: 'true'
timeouts: null
type: hyperdisk-balanced
zone: europe-west8-b
zone: europe-west8-c
module.vm-disk-options-example.google_compute_disk.disks["data2"]:
architecture: null
async_primary_disk: []
@@ -129,7 +129,7 @@ values:
goog-terraform-provisioned: 'true'
timeouts: null
type: hyperdisk-balanced
zone: europe-west8-b
zone: europe-west8-c
module.vm-disk-options-example.google_compute_instance.default[0]:
advanced_machine_features: []
allow_stopping_for_update: true
@@ -216,7 +216,7 @@ values:
terraform_labels:
goog-terraform-provisioned: 'true'
timeouts: null
zone: europe-west8-b
zone: europe-west8-c
module.vm-disk-options-example.google_service_account.service_account[0]:
account_id: tf-vm-test
create_ignore_already_exists: null

View File

@@ -0,0 +1,48 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
module.cluster-1.google_container_cluster.cluster:
notification_config:
- pubsub:
- enabled: true
filter:
- event_type:
- SECURITY_BULLETIN_EVENT
- UPGRADE_EVENT
module.cluster-1.google_pubsub_topic.notifications[0]:
effective_labels:
content: gke-notifications
goog-terraform-provisioned: 'true'
ingestion_data_source_settings: []
kms_key_name: projects/myproject/locations/global/keyRings/mykeyring/cryptoKeys/mykey
labels:
content: gke-notifications
message_retention_duration: null
message_transforms: []
name: gke-pubsub-notifications
project: project-id
schema_settings: []
tags: null
terraform_labels:
content: gke-notifications
goog-terraform-provisioned: 'true'
timeouts: null
counts:
google_container_cluster: 1
google_pubsub_topic: 1
modules: 1
resources: 2

View File

@@ -160,7 +160,7 @@ values:
content: gke-notifications
goog-terraform-provisioned: 'true'
ingestion_data_source_settings: []
kms_key_name: null
kms_key_name: projects/myproject/locations/global/keyRings/mykeyring/cryptoKeys/mykey
labels:
content: gke-notifications
message_retention_duration: null

View File

@@ -11,6 +11,9 @@ context = {
myuser = "user:test-user@example.com"
myuser2 = "user:test-user2@example.com"
}
kms_keys = {
mykey = "projects/366118655033/locations/europe-west8/keyRings/mykeyring/cryptoKeys/mykey"
}
locations = {
ew8 = "europe-west8"
}
@@ -21,9 +24,10 @@ context = {
"test/one" = "tagValues/1234567890"
}
}
name = "mybucket"
location = "$locations:ew8"
parent = "$project_ids:myproject"
kms_key_name = "$kms_keys:mykey"
name = "mybucket"
location = "$locations:ew8"
parent = "$project_ids:myproject"
tag_bindings = {
foo = "$tag_values:test/one"
}

View File

@@ -35,7 +35,8 @@ values:
role: roles/viewer
google_logging_project_bucket_config.bucket[0]:
bucket_id: mybucket
cmek_settings: []
cmek_settings:
- kms_key_name: projects/366118655033/locations/europe-west8/keyRings/mykeyring/cryptoKeys/mykey
enable_analytics: false
index_configs: []
location: europe-west8

View File

@@ -0,0 +1,12 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
grpc = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}
}

View File

@@ -0,0 +1,38 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["grpc"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-grpc
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
http = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: hc-test-0-http
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
http2 = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http2"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: hc-test-0-http2
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
https = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["https"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: hc-test-0-https
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,14 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
ssl = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["ssl"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-ssl
project: my-project
source_regions: null
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,14 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
tcp = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["tcp"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-tcp
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -16,3 +16,9 @@ module: modules/net-lb-app-ext
tests:
test-plan:
test-plan-llp:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:

View File

@@ -0,0 +1,12 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
grpc = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}
}

View File

@@ -0,0 +1,38 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["grpc"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-grpc
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
http = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: hc-test-0-http
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
http2 = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http2"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: hc-test-0-http2
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,15 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
https = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["https"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: hc-test-0-https
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,14 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
ssl = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["ssl"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-ssl
project: my-project
source_regions: null
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,14 @@
name = "hc-test-0"
project_id = "my-project"
health_check_configs = {
tcp = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["tcp"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-tcp
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,43 @@
/**
* Copyright 2025 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
project_id = "my-project"
name = "ilb-l7-test"
region = "europe-west1"
vpc_config = {
network = "projects/my-project/global/networks/default"
subnetwork = "projects/my-project/regions/europe-west1/subnetworks/default"
}
backend_service_configs = {
google-managed = {
backends = [{ group = "group-1" }]
iap_config = {}
}
oauth-managed = {
backends = [{ group = "group-2" }]
iap_config = {
oauth2_client_id = "client-id"
oauth2_client_secret = "client-secret"
}
}
migration-mode = {
backends = [{ group = "group-3" }]
iap_config = {
oauth2_client_id = " "
oauth2_client_secret = " "
}
}
}

View File

@@ -0,0 +1,20 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
counts:
google_compute_forwarding_rule: 1
google_compute_health_check: 1
google_compute_region_backend_service: 3
google_compute_region_target_http_proxy: 1
google_compute_region_url_map: 1

View File

@@ -20,6 +20,12 @@ tests:
groups:
health-checks-custom:
health-checks-external:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:
https:
negs:
ssl:

View File

@@ -0,0 +1,28 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
grpc = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}
}

View File

@@ -0,0 +1,38 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["grpc"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-grpc
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,31 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
http = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: hc-test-0-http
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,31 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
http2 = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["http2"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: hc-test-0-http2
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,31 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
https = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["https"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: hc-test-0-https
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,30 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
ssl = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["ssl"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-ssl
project: my-project
source_regions: null
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,30 @@
name = "hc-test-0"
project_id = "my-project"
backend_service_configs = {
default = {
backends = [{
group = "projects/myprj/zones/europe-west1-a/instanceGroups/my-ig-ew1"
}, {
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig-ew4"
}]
}
}
vpc_config = {
network = "network"
subnetworks = {
europe-west1 = "subnet-ew1"
europe-west4 = "subnet-ew4"
}
}
health_check_configs = {
tcp = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default["tcp"]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0-tcp
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,22 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module: modules/net-lb-app-int-cross-region
tests:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:

View File

@@ -0,0 +1,16 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}

View File

@@ -0,0 +1,37 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: nlb-test
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,19 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: nlb-test
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,19 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: nlb-test
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,19 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: nlb-test
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,18 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}

View File

@@ -0,0 +1,39 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: nlb-test
project: my-project
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,18 @@
project_id = "my-project"
region = "europe-west1"
name = "nlb-test"
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}

View File

@@ -0,0 +1,39 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: nlb-test
project: my-project
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -18,3 +18,9 @@ tests:
defaults:
dual-stack:
forwarding-rule:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:

View File

@@ -0,0 +1,19 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}

View File

@@ -0,0 +1,38 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: ilb-test
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,22 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: ilb-test
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,22 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: ilb-test
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,22 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}

View File

@@ -0,0 +1,41 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: ilb-test
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,21 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: ilb-test
project: my-project
source_regions: null
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -0,0 +1,21 @@
project_id = "my-project"
region = "europe-west1"
name = "ilb-test"
vpc_config = {
network = "default"
subnetwork = "default"
}
backends = [{
group = "foo"
failover = false
}]
health_check_config = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: ilb-test
project: my-project
source_regions: null
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_health_check: 1

View File

@@ -18,3 +18,9 @@ tests:
context:
defaults:
forwarding-rule:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:

View File

@@ -0,0 +1,12 @@
name = "hc-test-0"
project_id = "my-project"
region = "europe-west4"
backend_service_config = {
backends = [{
group = "projects/myprj/zones/europe-west4-a/instanceGroups/my-ig"
}]
}
vpc_config = {
network = "network"
subnetwork = "subnet"
}

View File

@@ -0,0 +1,8 @@
health_check_config = {
grpc = {
port = 1123
port_name = "grpc_port_name"
port_specification = "USE_FIXED_PORT"
service_name = "grpc_service_name"
}
}

View File

@@ -0,0 +1,37 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check:
- grpc_service_name: grpc_service_name
port: 1123
port_name: grpc_port_name
port_specification: USE_FIXED_PORT
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,11 @@
health_check_config = {
http = {
host = "http_host"
port = 2123
port_name = "http_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http_request_path"
response = "http_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check:
- host: http_host
port: 2123
port_name: http_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http_request_path
response: http_response
https_health_check: []
name: hc-test-0
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,11 @@
health_check_config = {
http2 = {
host = "http2_host"
port = 3123
port_name = "http2_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "http2_request_path"
response = "http2_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check:
- host: http2_host
port: 3123
port_name: http2_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: http2_request_path
response: http2_response
http_health_check: []
https_health_check: []
name: hc-test-0
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,11 @@
health_check_config = {
https = {
host = "https_host"
port = 4123
port_name = "https_port_name"
port_specification = "USE_FIXED_PORT" # USE_FIXED_PORT USE_NAMED_PORT USE_SERVING_PORT
proxy_header = "PROXY_V1"
request_path = "https_request_path"
response = "https_response"
}
}

View File

@@ -0,0 +1,40 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check:
- host: https_host
port: 4123
port_name: https_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request_path: https_request_path
response: https_response
name: hc-test-0
project: my-project
ssl_health_check: []
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,10 @@
health_check_config = {
ssl = {
port = 6123
port_name = "ssl_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "ssl_request"
response = "ssl_response"
}
}

View File

@@ -0,0 +1,39 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0
project: my-project
ssl_health_check:
- port: 6123
port_name: ssl_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: ssl_request
response: ssl_response
tcp_health_check: []
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,10 @@
health_check_config = {
tcp = {
port = 5123
port_name = "tcp_port_name"
port_specification = "USE_FIXED_PORT"
proxy_header = "PROXY_V1"
request = "tcp_request"
response = "tcp_response"
}
}

View File

@@ -0,0 +1,39 @@
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
values:
google_compute_region_health_check.default[0]:
check_interval_sec: 5
description: Terraform managed.
grpc_health_check: []
grpc_tls_health_check: []
healthy_threshold: 2
http2_health_check: []
http_health_check: []
https_health_check: []
name: hc-test-0
project: my-project
ssl_health_check: []
tcp_health_check:
- port: 5123
port_name: tcp_port_name
port_specification: USE_FIXED_PORT
proxy_header: PROXY_V1
request: tcp_request
response: tcp_response
timeout_sec: 5
timeouts: null
unhealthy_threshold: 2
counts:
google_compute_region_health_check: 1

View File

@@ -0,0 +1,24 @@
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
module: modules/net-lb-proxy-int
common_tfvars:
- common.tfvars
tests:
health-checks-grpc:
health-checks-http:
health-checks-http2:
health-checks-https:
health-checks-ssl:
health-checks-tcp:

View File

@@ -96,7 +96,6 @@ values:
credit_types: null
credit_types_treatment: INCLUDE_ALL_CREDITS
custom_period: []
projects: null
resource_ancestors:
- folders/1234567890
subaccounts: null