Skip to content

Commit b528e8d

Browse files
fix!: bump modules and examples to google provider v7 (#218)
Co-authored-by: Andrew Peabody <andrewpeabody@google.com>
1 parent eca1131 commit b528e8d

23 files changed

Lines changed: 56 additions & 53 deletions

File tree

examples/cloud_function2_gcs_source/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2021 Google LLC
2+
* Copyright 2026 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/cloud_function2_pubsub_trigger/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "google_storage_bucket_object" "function-source" {
2929

3030
module "pubsub" {
3131
source = "terraform-google-modules/pubsub/google"
32-
version = "~> 7.0"
32+
version = "~> 8.6"
3333

3434
topic = "function2-topic"
3535
project_id = var.project_id

examples/secure_cloud_function_bigquery_trigger/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2023 Google LLC
2+
* Copyright 2026 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ resource "random_id" "random_folder_suffix" {
3232

3333
module "secure_harness" {
3434
source = "GoogleCloudPlatform/cloud-run/google//modules/secure-serverless-harness"
35-
version = "~> 0.23"
35+
version = "~> 0.27"
3636

3737
billing_account = var.billing_account
3838
security_project_name = "prj-scf-sec-bq"
@@ -74,7 +74,7 @@ module "secure_harness" {
7474

7575
module "cloudfunction_source_bucket" {
7676
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
77-
version = "~> 10.0"
77+
version = "~> 12.3"
7878

7979
project_id = module.secure_harness.serverless_project_ids[0]
8080
name = "bkt-${local.location}-${module.secure_harness.serverless_project_numbers[module.secure_harness.serverless_project_ids[0]]}-cfv2-zip-files"
@@ -333,7 +333,7 @@ module "secure_cloud_function" {
333333
operator = "match-path-pattern" # This allows path patterns to be used in the value field
334334
}]
335335
}
336-
runtime = "go121"
336+
runtime = "go124"
337337
entry_point = "HelloCloudFunction"
338338

339339
depends_on = [

examples/secure_cloud_function_internal_server/internal_server.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2023 Google LLC
2+
* Copyright 2026 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -84,7 +84,7 @@ resource "google_compute_instance" "internal_server" {
8484

8585
module "internal_server_firewall_rule" {
8686
source = "terraform-google-modules/network/google//modules/firewall-rules"
87-
version = "~> 11.0"
87+
version = "~> 18.0"
8888

8989
project_id = module.secure_harness.network_project_id[0]
9090
network_name = module.secure_harness.service_vpc[0].network.name

examples/secure_cloud_function_internal_server/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# /**
2-
# * Copyright 2023 Google LLC
2+
# * Copyright 2026 Google LLC
33
# *
44
# * Licensed under the Apache License, Version 2.0 (the "License");
55
# * you may not use this file except in compliance with the License.
@@ -33,7 +33,7 @@ resource "random_id" "random_folder_suffix" {
3333

3434
module "secure_harness" {
3535
source = "GoogleCloudPlatform/cloud-run/google//modules/secure-serverless-harness"
36-
version = "~> 0.23"
36+
version = "~> 0.27"
3737

3838
billing_account = var.billing_account
3939
security_project_name = "prj-scf-security-cf"
@@ -102,7 +102,7 @@ resource "time_sleep" "wait_for_secure_harness" {
102102

103103
module "cloudfunction_source_bucket" {
104104
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
105-
version = "~> 10.0"
105+
version = "~> 12.3"
106106

107107
project_id = module.secure_harness.serverless_project_ids[0]
108108
name = "bkt-${local.location}-${module.secure_harness.serverless_project_numbers[module.secure_harness.serverless_project_ids[0]]}-cfv2-zip-files"
@@ -270,7 +270,7 @@ module "secure_cloud_function" {
270270
attribute_value = module.cloudfunction_source_bucket.name
271271
}]
272272
}
273-
runtime = "go121"
273+
runtime = "go124"
274274
entry_point = "helloHTTP"
275275

276276
depends_on = [

examples/secure_cloud_function_with_sql/main.tf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "random_id" "random_folder_suffix" {
3636

3737
module "secure_harness" {
3838
source = "GoogleCloudPlatform/cloud-run/google//modules/secure-serverless-harness"
39-
version = "~> 0.23"
39+
version = "~> 0.27"
4040

4141
billing_account = var.billing_account
4242
security_project_name = "prj-scf-sec-sql"
@@ -82,7 +82,7 @@ module "secure_harness" {
8282

8383
module "cloudfunction_source_bucket" {
8484
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
85-
version = "~> 10.0"
85+
version = "~> 12.3"
8686

8787
project_id = module.secure_harness.serverless_project_ids[0]
8888
name = "bkt-${local.location}-${module.secure_harness.serverless_project_numbers[module.secure_harness.serverless_project_ids[0]]}-cfv2-zip-files"
@@ -101,7 +101,7 @@ module "cloudfunction_source_bucket" {
101101

102102
module "cloud_sql_temp_bucket" {
103103
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
104-
version = "~> 10.0"
104+
version = "~> 12.3"
105105

106106
project_id = module.secure_harness.serverless_project_ids[1]
107107
name = "bkt-${local.location}-${module.secure_harness.serverless_project_numbers[module.secure_harness.serverless_project_ids[1]]}-temp-files"
@@ -274,7 +274,7 @@ module "secure_web_proxy" {
274274

275275
module "safer_mysql_db" {
276276
source = "GoogleCloudPlatform/sql-db/google//modules/mysql"
277-
version = "~> 25.0"
277+
version = "~> 28.0"
278278

279279
name = "csql-test"
280280
db_name = local.db_name
@@ -303,7 +303,7 @@ module "safer_mysql_db" {
303303

304304
module "cloud_sql_firewall_rule" {
305305
source = "terraform-google-modules/network/google//modules/firewall-rules"
306-
version = "~> 11.0"
306+
version = "~> 18.0"
307307

308308
project_id = module.secure_harness.network_project_id[0]
309309
network_name = module.secure_harness.service_vpc[0].network.name
@@ -483,7 +483,7 @@ resource "google_cloud_scheduler_job" "job" {
483483

484484
module "pubsub" {
485485
source = "terraform-google-modules/pubsub/google"
486-
version = "~> 7.0"
486+
version = "~> 8.6"
487487

488488
topic = "tpc-cloud-function-sql"
489489
project_id = module.secure_harness.serverless_project_ids[0]
@@ -564,7 +564,7 @@ module "secure_cloud_function" {
564564
service_account_email = module.secure_harness.service_account_email[module.secure_harness.serverless_project_ids[0]]
565565
}
566566

567-
runtime = "go121"
567+
runtime = "go124"
568568
entry_point = "HelloCloudFunction"
569569

570570
depends_on = [

metadata.display.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

metadata.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -142,11 +142,11 @@ spec:
142142
description: Details of the service
143143
varType: |-
144144
object({
145-
max_instance_count = optional(string, "100")
146-
min_instance_count = optional(string, "1")
145+
max_instance_count = optional(string, 100)
146+
min_instance_count = optional(string, 1)
147147
available_memory = optional(string, "256M")
148-
available_cpu = optional(string, "1")
149-
timeout_seconds = optional(string, "60")
148+
available_cpu = optional(string, 1)
149+
timeout_seconds = optional(string, 60)
150150
runtime_env_variables = optional(map(string), null)
151151
runtime_secret_env_variables = optional(set(object({
152152
key_name = string
@@ -261,6 +261,6 @@ spec:
261261
- servicenetworking.googleapis.com
262262
providerVersions:
263263
- source: hashicorp/google
264-
version: ">= 4.48, < 7"
264+
version: ">= 4.48, < 8"
265265
- source: hashicorp/google-beta
266-
version: ">= 4.48, < 7"
266+
version: ">= 4.48, < 8"

modules/secure-cloud-function-core/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ data "google_project" "project" {
2424

2525
module "cloudfunction_bucket" {
2626
source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
27-
version = "~> 10.0"
27+
version = "~> 12.3"
2828

2929
project_id = var.project_id
3030
labels = var.labels
@@ -67,7 +67,7 @@ module "pubsub" {
6767
for_each = toset(["container-analysis-notes-v1", "container-analysis-notes-v1beta1", "container-analysis-occurrences-v1", "container-analysis-occurrences-v1beta1"])
6868

6969
source = "terraform-google-modules/pubsub/google"
70-
version = "~> 7.0"
70+
version = "~> 8.6"
7171

7272
topic = each.value
7373
project_id = var.project_id

modules/secure-cloud-function-core/metadata.display.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)