diff --git a/examples/tfengine/generated/devops/cicd/main.tf b/examples/tfengine/generated/devops/cicd/main.tf index c751ad763..80d43b82f 100644 --- a/examples/tfengine/generated/devops/cicd/main.tf +++ b/examples/tfengine/generated/devops/cicd/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -190,7 +190,7 @@ resource "google_project_iam_member" "cloudbuild_scheduler_sa_project_iam" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/examples/tfengine/generated/devops/devops/main.tf b/examples/tfengine/generated/devops/devops/main.tf index e85fee39c..0c5955ceb 100644 --- a/examples/tfengine/generated/devops/devops/main.tf +++ b/examples/tfengine/generated/devops/devops/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } } @@ -33,7 +33,7 @@ terraform { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-devops" org_id = "12345678" @@ -52,7 +52,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-terraform-state" project_id = module.project.project_id diff --git a/examples/tfengine/generated/devops/groups/main.tf b/examples/tfengine/generated/devops/groups/main.tf index 1d914c4e4..55047b11f 100644 --- a/examples/tfengine/generated/devops/groups/main.tf +++ b/examples/tfengine/generated/devops/groups/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-devops" activate_apis = [] diff --git a/examples/tfengine/generated/folder_foundation/audit/main.tf b/examples/tfengine/generated/folder_foundation/audit/main.tf index d32b4be40..68360dafe 100644 --- a/examples/tfengine/generated/folder_foundation/audit/main.tf +++ b/examples/tfengine/generated/folder_foundation/audit/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = ">=3.0, <= 3.71" - google-beta = "~>3.50" - kubernetes = "~> 1.0" + google = "<= 4.30" + google-beta = "~>4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-audit" org_id = "" diff --git a/examples/tfengine/generated/folder_foundation/cicd/main.tf b/examples/tfengine/generated/folder_foundation/cicd/main.tf index b87e66233..2a26faefa 100644 --- a/examples/tfengine/generated/folder_foundation/cicd/main.tf +++ b/examples/tfengine/generated/folder_foundation/cicd/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -195,7 +195,7 @@ resource "google_service_account" "cloudbuild_sa" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/examples/tfengine/generated/folder_foundation/devops/main.tf b/examples/tfengine/generated/folder_foundation/devops/main.tf index 665b2a776..08b1300b8 100644 --- a/examples/tfengine/generated/folder_foundation/devops/main.tf +++ b/examples/tfengine/generated/folder_foundation/devops/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } } @@ -33,7 +33,7 @@ terraform { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-devops" org_id = "" @@ -53,7 +53,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-terraform-state" project_id = module.project.project_id diff --git a/examples/tfengine/generated/folder_foundation/example-prod-networks/main.tf b/examples/tfengine/generated/folder_foundation/example-prod-networks/main.tf index 0ed6f9559..ff757dbc7 100644 --- a/examples/tfengine/generated/folder_foundation/example-prod-networks/main.tf +++ b/examples/tfengine/generated/folder_foundation/example-prod-networks/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-networks" org_id = "" @@ -51,7 +51,7 @@ module "project" { module "example_network" { source = "terraform-google-modules/network/google" - version = "~> 4.0.1" + version = "~> 5.1.0" network_name = "example-network" project_id = module.project.project_id @@ -69,7 +69,7 @@ module "example_network" { module "example_router" { source = "terraform-google-modules/cloud-router/google" - version = "~> 1.2.0" + version = "~> 3.0.0" name = "example-router" project = module.project.project_id diff --git a/examples/tfengine/generated/folder_foundation/folders/main.tf b/examples/tfengine/generated/folder_foundation/folders/main.tf index 2bb997ab3..c2cc2c0c0 100644 --- a/examples/tfengine/generated/folder_foundation/folders/main.tf +++ b/examples/tfengine/generated/folder_foundation/folders/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/folder_foundation/groups/main.tf b/examples/tfengine/generated/folder_foundation/groups/main.tf index a03e421a3..f6c2c34f1 100644 --- a/examples/tfengine/generated/folder_foundation/groups/main.tf +++ b/examples/tfengine/generated/folder_foundation/groups/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-devops" activate_apis = [] diff --git a/examples/tfengine/generated/gke_cluster/gke_cluster/cluster/main.tf b/examples/tfengine/generated/gke_cluster/gke_cluster/cluster/main.tf index c4de6a22e..b68376a27 100644 --- a/examples/tfengine/generated/gke_cluster/gke_cluster/cluster/main.tf +++ b/examples/tfengine/generated/gke_cluster/gke_cluster/cluster/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-apps" org_id = "12345678" @@ -64,7 +64,7 @@ provider "kubernetes" { module "example_cluster" { source = "terraform-google-modules/kubernetes-engine/google//modules/safer-cluster-update-variant" - version = "~> 13.1.0" + version = "~> 22.0.0" providers = { kubernetes = kubernetes.example_cluster diff --git a/examples/tfengine/generated/gke_cluster/gke_cluster/kubernetes/main.tf b/examples/tfengine/generated/gke_cluster/gke_cluster/kubernetes/main.tf index 448ec85bc..3cd990c62 100644 --- a/examples/tfengine/generated/gke_cluster/gke_cluster/kubernetes/main.tf +++ b/examples/tfengine/generated/gke_cluster/gke_cluster/kubernetes/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -45,7 +45,7 @@ provider "kubernetes" { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-apps" activate_apis = [] @@ -72,7 +72,7 @@ resource "kubernetes_namespace" "example_namespace" { module "workload_identity_example_namespace" { source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" - version = "16.1.0" + version = "22.0.0" project_id = module.project.project_id name = "example-sa" diff --git a/examples/tfengine/generated/gke_cluster/gke_cluster/networks/main.tf b/examples/tfengine/generated/gke_cluster/gke_cluster/networks/main.tf index 29366ad2e..9d9c80649 100644 --- a/examples/tfengine/generated/gke_cluster/gke_cluster/networks/main.tf +++ b/examples/tfengine/generated/gke_cluster/gke_cluster/networks/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-networks" org_id = "12345678" @@ -50,7 +50,7 @@ module "project" { module "network" { source = "terraform-google-modules/network/google" - version = "~> 4.0.1" + version = "~> 5.1.0" network_name = "network" project_id = module.project.project_id diff --git a/examples/tfengine/generated/iam_members/iam_members/main.tf b/examples/tfengine/generated/iam_members/iam_members/main.tf index e2733ff72..26f0d39a9 100644 --- a/examples/tfengine/generated/iam_members/iam_members/main.tf +++ b/examples/tfengine/generated/iam_members/iam_members/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/multi_envs/audit/main.tf b/examples/tfengine/generated/multi_envs/audit/main.tf index c7a7302cd..046d66575 100644 --- a/examples/tfengine/generated/multi_envs/audit/main.tf +++ b/examples/tfengine/generated/multi_envs/audit/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-audit" org_id = "" diff --git a/examples/tfengine/generated/multi_envs/cicd/main.tf b/examples/tfengine/generated/multi_envs/cicd/main.tf index 702b3cac4..870f00ea2 100644 --- a/examples/tfengine/generated/multi_envs/cicd/main.tf +++ b/examples/tfengine/generated/multi_envs/cicd/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -204,7 +204,7 @@ resource "google_service_account" "cloudbuild_sa" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/examples/tfengine/generated/multi_envs/dev/data/main.tf b/examples/tfengine/generated/multi_envs/dev/data/main.tf index 7e0ca89af..fb23c0380 100644 --- a/examples/tfengine/generated/multi_envs/dev/data/main.tf +++ b/examples/tfengine/generated/multi_envs/dev/data/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -37,7 +37,7 @@ data "terraform_remote_state" "folders" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-data-dev" org_id = "" @@ -57,7 +57,7 @@ module "project" { module "example_bucket_dev" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-bucket-dev" project_id = module.project.project_id diff --git a/examples/tfengine/generated/multi_envs/devops/main.tf b/examples/tfengine/generated/multi_envs/devops/main.tf index b1d2f6de4..eb5bbd7b8 100644 --- a/examples/tfengine/generated/multi_envs/devops/main.tf +++ b/examples/tfengine/generated/multi_envs/devops/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } } @@ -39,7 +39,7 @@ provider "google-beta" { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-devops" org_id = "" @@ -59,7 +59,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-terraform-state" project_id = module.project.project_id diff --git a/examples/tfengine/generated/multi_envs/folders/main.tf b/examples/tfengine/generated/multi_envs/folders/main.tf index 168411d6e..2fec83b4a 100644 --- a/examples/tfengine/generated/multi_envs/folders/main.tf +++ b/examples/tfengine/generated/multi_envs/folders/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/multi_envs/groups/main.tf b/examples/tfengine/generated/multi_envs/groups/main.tf index 3dd398f22..d4e2ddcc3 100644 --- a/examples/tfengine/generated/multi_envs/groups/main.tf +++ b/examples/tfengine/generated/multi_envs/groups/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-devops" activate_apis = [] diff --git a/examples/tfengine/generated/multi_envs/prod/data/main.tf b/examples/tfengine/generated/multi_envs/prod/data/main.tf index d5a032b2e..ffdb31abc 100644 --- a/examples/tfengine/generated/multi_envs/prod/data/main.tf +++ b/examples/tfengine/generated/multi_envs/prod/data/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -37,7 +37,7 @@ data "terraform_remote_state" "folders" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-data-prod" org_id = "" @@ -58,7 +58,7 @@ module "project" { module "example_bucket_prod" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-bucket-prod" project_id = module.project.project_id diff --git a/examples/tfengine/generated/org_foundation/audit/main.tf b/examples/tfengine/generated/org_foundation/audit/main.tf index bb834f18a..92f7ca103 100644 --- a/examples/tfengine/generated/org_foundation/audit/main.tf +++ b/examples/tfengine/generated/org_foundation/audit/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-audit" org_id = "12345678" diff --git a/examples/tfengine/generated/org_foundation/cicd/main.tf b/examples/tfengine/generated/org_foundation/cicd/main.tf index 38bb55ea6..21609ea60 100644 --- a/examples/tfengine/generated/org_foundation/cicd/main.tf +++ b/examples/tfengine/generated/org_foundation/cicd/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -176,7 +176,7 @@ resource "google_service_account" "cloudbuild_sa" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/examples/tfengine/generated/org_foundation/devops/main.tf b/examples/tfengine/generated/org_foundation/devops/main.tf index e85fee39c..0c5955ceb 100644 --- a/examples/tfengine/generated/org_foundation/devops/main.tf +++ b/examples/tfengine/generated/org_foundation/devops/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } } @@ -33,7 +33,7 @@ terraform { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-devops" org_id = "12345678" @@ -52,7 +52,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-terraform-state" project_id = module.project.project_id diff --git a/examples/tfengine/generated/org_foundation/example-prod-networks/main.tf b/examples/tfengine/generated/org_foundation/example-prod-networks/main.tf index 79361b63f..9370d0cef 100644 --- a/examples/tfengine/generated/org_foundation/example-prod-networks/main.tf +++ b/examples/tfengine/generated/org_foundation/example-prod-networks/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-networks" org_id = "12345678" @@ -50,7 +50,7 @@ module "project" { module "example_network" { source = "terraform-google-modules/network/google" - version = "~> 4.0.1" + version = "~> 5.1.0" network_name = "example-network" project_id = module.project.project_id @@ -68,7 +68,7 @@ module "example_network" { module "example_router" { source = "terraform-google-modules/cloud-router/google" - version = "~> 1.2.0" + version = "~> 3.0.0" name = "example-router" project = module.project.project_id diff --git a/examples/tfengine/generated/org_foundation/folders/main.tf b/examples/tfengine/generated/org_foundation/folders/main.tf index 5073311a7..0c0716f88 100644 --- a/examples/tfengine/generated/org_foundation/folders/main.tf +++ b/examples/tfengine/generated/org_foundation/folders/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/org_foundation/groups/main.tf b/examples/tfengine/generated/org_foundation/groups/main.tf index a03e421a3..f6c2c34f1 100644 --- a/examples/tfengine/generated/org_foundation/groups/main.tf +++ b/examples/tfengine/generated/org_foundation/groups/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-devops" activate_apis = [] diff --git a/examples/tfengine/generated/org_foundation/org_policies/main.tf b/examples/tfengine/generated/org_foundation/org_policies/main.tf index cbe8c4128..552e70b1a 100644 --- a/examples/tfengine/generated/org_foundation/org_policies/main.tf +++ b/examples/tfengine/generated/org_foundation/org_policies/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/org_policies/org_policies/main.tf b/examples/tfengine/generated/org_policies/org_policies/main.tf index 77545b611..7532c090a 100644 --- a/examples/tfengine/generated/org_policies/org_policies/main.tf +++ b/examples/tfengine/generated/org_policies/org_policies/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/resources_only/resources/main.tf b/examples/tfengine/generated/resources_only/resources/main.tf index f644d6b92..f467877f0 100644 --- a/examples/tfengine/generated/resources_only/resources/main.tf +++ b/examples/tfengine/generated/resources_only/resources/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-prod-project" activate_apis = [] @@ -123,7 +123,7 @@ resource "google_service_account" "example_sa" { module "example_prod_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-prod-bucket" project_id = module.project.project_id diff --git a/examples/tfengine/generated/team/additional_iam_members/main.tf b/examples/tfengine/generated/team/additional_iam_members/main.tf index 690185cdb..378e310d1 100644 --- a/examples/tfengine/generated/team/additional_iam_members/main.tf +++ b/examples/tfengine/generated/team/additional_iam_members/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" diff --git a/examples/tfengine/generated/team/cicd/main.tf b/examples/tfengine/generated/team/cicd/main.tf index 7b22d1286..cdb6829b1 100644 --- a/examples/tfengine/generated/team/cicd/main.tf +++ b/examples/tfengine/generated/team/cicd/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = ">=3.87, < 4.0.0" - google-beta = "~>3.50" - kubernetes = "~> 1.0" + google = "< 5.0.0" + google-beta = "~>4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -184,7 +184,7 @@ resource "google_service_account" "cloudbuild_sa" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/examples/tfengine/generated/team/devops/main.tf b/examples/tfengine/generated/team/devops/main.tf index ecc856e72..38c6bebbc 100644 --- a/examples/tfengine/generated/team/devops/main.tf +++ b/examples/tfengine/generated/team/devops/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = ">=3.0, <= 3.71" - google-beta = "~>3.50" - kubernetes = "~> 1.0" + google = "<= 4.30" + google-beta = "~>4.0" + kubernetes = "~> 2.0" } } @@ -39,7 +39,7 @@ provider "google-beta" { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-devops" org_id = "" @@ -68,7 +68,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-terraform-state" project_id = module.project.project_id diff --git a/examples/tfengine/generated/team/groups/main.tf b/examples/tfengine/generated/team/groups/main.tf index 6bad0a4bb..ea9a684aa 100644 --- a/examples/tfengine/generated/team/groups/main.tf +++ b/examples/tfengine/generated/team/groups/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -28,7 +28,7 @@ terraform { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-prod-devops" activate_apis = [] diff --git a/examples/tfengine/generated/team/kubernetes/main.tf b/examples/tfengine/generated/team/kubernetes/main.tf index 063842e2a..1185abd19 100644 --- a/examples/tfengine/generated/team/kubernetes/main.tf +++ b/examples/tfengine/generated/team/kubernetes/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -45,7 +45,7 @@ provider "kubernetes" { module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "example-prod-apps" activate_apis = [] @@ -75,7 +75,7 @@ resource "kubernetes_namespace" "namespace" { module "workload_identity_namespace" { source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" - version = "16.1.0" + version = "22.0.0" project_id = module.project.project_id name = "runner" diff --git a/examples/tfengine/generated/team/project_apps/main.tf b/examples/tfengine/generated/team/project_apps/main.tf index 468c47a4a..0f3d6c1f9 100644 --- a/examples/tfengine/generated/team/project_apps/main.tf +++ b/examples/tfengine/generated/team/project_apps/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -36,7 +36,7 @@ resource "google_compute_address" "static" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-apps" org_id = "" @@ -111,7 +111,7 @@ resource "google_binary_authorization_policy" "policy" { module "instance_template" { source = "terraform-google-modules/vm/google//modules/instance_template" - version = "~> 6.6.0" + version = "~> 7.8.0" name_prefix = "instance-template" project_id = module.project.project_id @@ -147,7 +147,7 @@ module "instance_template" { module "instance" { source = "terraform-google-modules/vm/google//modules/compute_instance" - version = "~> 6.6.0" + version = "~> 7.8.0" hostname = "instance" instance_template = module.instance_template.self_link @@ -166,7 +166,7 @@ module "instance" { module "domain" { source = "terraform-google-modules/cloud-dns/google" - version = "~> 3.1.0" + version = "~> 4.1.0" name = "domain" project_id = module.project.project_id @@ -195,7 +195,7 @@ provider "kubernetes" { module "gke_cluster" { source = "terraform-google-modules/kubernetes-engine/google//modules/safer-cluster-update-variant" - version = "~> 13.1.0" + version = "~> 22.0.0" providers = { kubernetes = kubernetes.gke_cluster diff --git a/examples/tfengine/generated/team/project_data/main.tf b/examples/tfengine/generated/team/project_data/main.tf index 3521961ae..cddd4ed70 100644 --- a/examples/tfengine/generated/team/project_data/main.tf +++ b/examples/tfengine/generated/team/project_data/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -38,7 +38,7 @@ data "google_secret_manager_secret_version" "db_password" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-data" org_id = "" @@ -95,7 +95,7 @@ module "one_billion_ms_dataset" { module "sql_instance" { source = "GoogleCloudPlatform/sql-db/google//modules/safer_mysql" - version = "~> 4.5.0" + version = "~> 11.0.0" name = "sql-instance" project_id = module.project.project_id @@ -252,7 +252,7 @@ module "topic" { module "example_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "example-bucket" project_id = module.project.project_id diff --git a/examples/tfengine/generated/team/project_networks/main.tf b/examples/tfengine/generated/team/project_networks/main.tf index 2d3da85dd..e177cb27b 100644 --- a/examples/tfengine/generated/team/project_networks/main.tf +++ b/examples/tfengine/generated/team/project_networks/main.tf @@ -15,9 +15,9 @@ terraform { required_version = ">=0.14" required_providers { - google = "~> 3.0" - google-beta = "~> 3.0" - kubernetes = "~> 1.0" + google = "~> 4.0" + google-beta = "~> 4.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -30,7 +30,7 @@ terraform { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-networks" org_id = "" @@ -61,7 +61,7 @@ module "project" { module "bastion_vm" { source = "terraform-google-modules/bastion-host/google" - version = "~> 3.2.0" + version = "~> 5.0.0" name = "bastion-vm" project = module.project.project_id @@ -91,7 +91,7 @@ EOF module "network" { source = "terraform-google-modules/network/google" - version = "~> 4.0.1" + version = "~> 5.1.0" network_name = "network" project_id = module.project.project_id @@ -134,7 +134,7 @@ module "network" { } module "cloud_sql_private_service_access_network" { source = "GoogleCloudPlatform/sql-db/google//modules/private_service_access" - version = "~> 4.5.0" + version = "~> 11.0.0" project_id = module.project.project_id vpc_network = module.network.network_name @@ -145,7 +145,7 @@ module "cloud_sql_private_service_access_network" { module "router" { source = "terraform-google-modules/cloud-router/google" - version = "~> 1.2.0" + version = "~> 3.0.0" name = "router" project = module.project.project_id @@ -170,7 +170,7 @@ module "router" { module "google_apis" { source = "terraform-google-modules/cloud-dns/google" - version = "~> 3.1.0" + version = "~> 4.1.0" name = "google-apis" project_id = module.project.project_id @@ -203,7 +203,7 @@ module "google_apis" { module "gcr" { source = "terraform-google-modules/cloud-dns/google" - version = "~> 3.1.0" + version = "~> 4.1.0" name = "gcr" project_id = module.project.project_id diff --git a/examples/tfengine/generated/team/project_secrets/main.tf b/examples/tfengine/generated/team/project_secrets/main.tf index 7c3005f60..1d3560490 100644 --- a/examples/tfengine/generated/team/project_secrets/main.tf +++ b/examples/tfengine/generated/team/project_secrets/main.tf @@ -15,10 +15,10 @@ terraform { required_version = ">=0.14" required_providers { - google = ">=3.0, <= 3.71" - google-beta = "~>3.50" + google = "<= 4.30" + google-beta = "~>4.0" null = "~> 3.0" - kubernetes = "~> 1.0" + kubernetes = "~> 2.0" } backend "gcs" { bucket = "example-terraform-state" @@ -36,7 +36,7 @@ resource "random_password" "db" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "example-prod-secrets" org_id = "" diff --git a/templates/tfengine/components/cicd/main.tf b/templates/tfengine/components/cicd/main.tf index d973c82bb..206dffb13 100644 --- a/templates/tfengine/components/cicd/main.tf +++ b/templates/tfengine/components/cicd/main.tf @@ -275,7 +275,7 @@ resource "google_service_account" "cloudbuild_sa" { # Cloud Build - Storage Bucket to store Cloud Build logs. module "logs_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = var.logs_bucket project_id = var.project_id diff --git a/templates/tfengine/components/devops/main.tf b/templates/tfengine/components/devops/main.tf index 20167570c..209611534 100644 --- a/templates/tfengine/components/devops/main.tf +++ b/templates/tfengine/components/devops/main.tf @@ -33,7 +33,7 @@ provider "google-beta" { # Create the project, enable APIs, and create the deletion lien, if specified. module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "{{.project.project_id}}" {{- if eq .parent_type "organization"}} @@ -67,7 +67,7 @@ module "project" { # Terraform state bucket, hosted in the devops project. module "state_bucket" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "{{.state_bucket}}" project_id = module.project.project_id diff --git a/templates/tfengine/components/project/main.tf b/templates/tfengine/components/project/main.tf index eed82566d..e1c94a5a8 100644 --- a/templates/tfengine/components/project/main.tf +++ b/templates/tfengine/components/project/main.tf @@ -12,7 +12,7 @@ limitations under the License. */ -}} {{- if get . "exists"}} module "project" { source = "terraform-google-modules/project-factory/google//modules/project_services" - version = "~> 11.3.0" + version = "~> 13.0.0" project_id = "{{.project_id}}" activate_apis = {{- if has . "apis"}} {{hcl .apis}} {{- else}} [] {{end}} @@ -23,7 +23,7 @@ module "project" { # Shared VPC: https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#centralize_network_control module "project" { source = "terraform-google-modules/project-factory/google" - version = "~> 11.3.0" + version = "~> 13.0.0" name = "{{.project_id}}" {{- if eq .parent_type "organization"}} diff --git a/templates/tfengine/components/resources/bastion_hosts/main.tf b/templates/tfengine/components/resources/bastion_hosts/main.tf index 053ba8b5f..c5583ae54 100644 --- a/templates/tfengine/components/resources/bastion_hosts/main.tf +++ b/templates/tfengine/components/resources/bastion_hosts/main.tf @@ -15,7 +15,7 @@ limitations under the License. */ -}} {{range .bastion_hosts}} module "{{resourceName . "name"}}" { source = "terraform-google-modules/bastion-host/google" - version = "~> 3.2.0" + version = "~> 5.0.0" name = "{{.name}}" project = module.project.project_id diff --git a/templates/tfengine/components/resources/cloud_sql_instances/main.tf b/templates/tfengine/components/resources/cloud_sql_instances/main.tf index 228e38106..1cb7fd211 100644 --- a/templates/tfengine/components/resources/cloud_sql_instances/main.tf +++ b/templates/tfengine/components/resources/cloud_sql_instances/main.tf @@ -21,7 +21,7 @@ limitations under the License. */ -}} {{if eq .type "mysql" -}} module "{{resourceName . "name"}}" { source = "GoogleCloudPlatform/sql-db/google//modules/safer_mysql" - version = "~> 4.5.0" + version = "~> 11.0.0" name = "{{.name}}" project_id = module.project.project_id diff --git a/templates/tfengine/components/resources/compute_instance_templates/main.tf b/templates/tfengine/components/resources/compute_instance_templates/main.tf index c3d5d1c7e..c5af84a21 100644 --- a/templates/tfengine/components/resources/compute_instance_templates/main.tf +++ b/templates/tfengine/components/resources/compute_instance_templates/main.tf @@ -23,7 +23,7 @@ limitations under the License. */ -}} {{$subnet := .subnet -}} module "{{$template_resource_name}}" { source = "terraform-google-modules/vm/google//modules/instance_template" - version = "~> 6.6.0" + version = "~> 7.8.0" name_prefix = "{{.name_prefix}}" project_id = module.project.project_id @@ -87,7 +87,7 @@ EOF {{range get . "instances" -}} module "{{resourceName . "name"}}" { source = "terraform-google-modules/vm/google//modules/compute_instance" - version = "~> 6.6.0" + version = "~> 7.8.0" hostname = "{{.name}}" instance_template = module.{{$template_resource_name}}.self_link diff --git a/templates/tfengine/components/resources/compute_networks/main.tf b/templates/tfengine/components/resources/compute_networks/main.tf index 98ac911ea..207659594 100644 --- a/templates/tfengine/components/resources/compute_networks/main.tf +++ b/templates/tfengine/components/resources/compute_networks/main.tf @@ -18,7 +18,7 @@ limitations under the License. */ -}} module "{{$resource_name}}" { source = "terraform-google-modules/network/google" - version = "~> 4.0.1" + version = "~> 5.1.0" network_name = "{{.name}}" project_id = module.project.project_id @@ -60,7 +60,7 @@ module "{{$resource_name}}" { {{- if has . "cloud_sql_private_service_access"}} module "cloud_sql_private_service_access_{{$resource_name}}" { source = "GoogleCloudPlatform/sql-db/google//modules/private_service_access" - version = "~> 4.5.0" + version = "~> 11.0.0" project_id = module.project.project_id vpc_network = module.{{$resource_name}}.network_name diff --git a/templates/tfengine/components/resources/compute_routers/main.tf b/templates/tfengine/components/resources/compute_routers/main.tf index 009a8b8cf..a2353581c 100644 --- a/templates/tfengine/components/resources/compute_routers/main.tf +++ b/templates/tfengine/components/resources/compute_routers/main.tf @@ -15,7 +15,7 @@ limitations under the License. */ -}} {{range .compute_routers}} module "{{resourceName . "name"}}" { source = "terraform-google-modules/cloud-router/google" - version = "~> 1.2.0" + version = "~> 3.0.0" name = "{{.name}}" project = module.project.project_id diff --git a/templates/tfengine/components/resources/dns_zones/main.tf b/templates/tfengine/components/resources/dns_zones/main.tf index ae27745e0..d813c4fdc 100644 --- a/templates/tfengine/components/resources/dns_zones/main.tf +++ b/templates/tfengine/components/resources/dns_zones/main.tf @@ -15,7 +15,7 @@ limitations under the License. */ -}} {{range get . "dns_zones"}} module "{{resourceName . "name"}}" { source = "terraform-google-modules/cloud-dns/google" - version = "~> 3.1.0" + version = "~> 4.1.0" name = "{{.name}}" project_id = module.project.project_id diff --git a/templates/tfengine/components/resources/gke_clusters/main.tf b/templates/tfengine/components/resources/gke_clusters/main.tf index 74060dd9b..a863e7b1a 100644 --- a/templates/tfengine/components/resources/gke_clusters/main.tf +++ b/templates/tfengine/components/resources/gke_clusters/main.tf @@ -25,7 +25,7 @@ provider "kubernetes" { module "{{resourceName . "name"}}" { source = "terraform-google-modules/kubernetes-engine/google//modules/safer-cluster-update-variant" - version = "~> 13.1.0" + version = "~> 22.0.0" providers = { kubernetes = kubernetes.{{resourceName . "name"}} diff --git a/templates/tfengine/components/resources/storage_buckets/main.tf b/templates/tfengine/components/resources/storage_buckets/main.tf index 11abed096..b9b9f27dc 100644 --- a/templates/tfengine/components/resources/storage_buckets/main.tf +++ b/templates/tfengine/components/resources/storage_buckets/main.tf @@ -15,7 +15,7 @@ limitations under the License. */ -}} {{range get . "storage_buckets"}} module "{{resourceName . "name"}}" { source = "terraform-google-modules/cloud-storage/google//modules/simple_bucket" - version = "~> 1.4" + version = "~> 3.0" name = "{{.name}}" project_id = module.project.project_id diff --git a/templates/tfengine/components/resources/workload_identity/main.tf b/templates/tfengine/components/resources/workload_identity/main.tf index 541a45548..0c96ed812 100644 --- a/templates/tfengine/components/resources/workload_identity/main.tf +++ b/templates/tfengine/components/resources/workload_identity/main.tf @@ -15,7 +15,7 @@ limitations under the License. */ -}} {{range get . "workload_identity"}} module "workload_identity_{{resourceName . "namespace"}}" { source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity" - version = "16.1.0" + version = "22.0.0" project_id = "{{.project_id}}" name = "{{.google_service_account_id}}" diff --git a/templates/tfengine/components/terraform/main/main.tf b/templates/tfengine/components/terraform/main/main.tf index bd219eb32..13240059d 100644 --- a/templates/tfengine/components/terraform/main/main.tf +++ b/templates/tfengine/components/terraform/main/main.tf @@ -34,13 +34,13 @@ terraform { {{end -}} {{end -}} {{if not $hasGoogle -}} - google = "~> 3.0" + google = "~> 4.0" {{end -}} {{if not $hasGoogleBeta -}} - google-beta = "~> 3.0" + google-beta = "~> 4.0" {{end -}} {{if not $hasKubernetes -}} - kubernetes = "~> 1.0" + kubernetes = "~> 2.0" {{end -}} } {{- if get . "enable_gcs_backend" true}}