Skip to content

Commit

Permalink
terraform: upgrade hashicorp/google to 6.7.0 (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev authored Oct 21, 2024
1 parent 0997ce2 commit 96ac712
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 127 deletions.
72 changes: 18 additions & 54 deletions terraform/infrastructure/gcp/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 5 additions & 18 deletions terraform/infrastructure/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
}

google-beta = {
source = "hashicorp/google-beta"
version = "5.37.0"
version = "6.7.0"
}

random = {
Expand All @@ -23,12 +18,6 @@ provider "google" {
zone = var.zone
}

provider "google-beta" {
project = var.project
region = var.region
zone = var.zone
}

locals {
uid = random_id.uid.hex
name = "${var.name}-${local.uid}"
Expand Down Expand Up @@ -91,12 +80,10 @@ resource "google_compute_subnetwork" "vpc_subnetwork" {
description = "Constellation VPC subnetwork"
network = google_compute_network.vpc_network.id
ip_cidr_range = local.cidr_vpc_subnet_nodes
secondary_ip_range = [
{
range_name = local.name,
ip_cidr_range = local.cidr_vpc_subnet_pods,
}
]
secondary_ip_range {
range_name = local.name
ip_cidr_range = local.cidr_vpc_subnet_pods
}
}

resource "google_compute_subnetwork" "proxy_subnet" {
Expand Down
11 changes: 1 addition & 10 deletions terraform/infrastructure/gcp/modules/instance_group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
}

google-beta = {
source = "hashicorp/google-beta"
version = "5.37.0"
version = "6.7.0"
}

random = {
Expand All @@ -28,10 +23,6 @@ resource "random_id" "uid" {
}

resource "google_compute_instance_template" "template" {
# Beta provider is necessary to set confidential instance types.
# TODO(msanft): Remove beta provider once confidential instance type setting is in GA.
provider = google-beta

name = local.name
machine_type = var.instance_type
tags = ["constellation-${var.uid}"] // Note that this is also applied as a label
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
version = "6.7.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/infrastructure/gcp/modules/jump_host/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
version = "6.7.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion terraform/infrastructure/gcp/modules/loadbalancer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
version = "6.7.0"
}
}
}
Expand Down
76 changes: 35 additions & 41 deletions terraform/infrastructure/iam/gcp/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terraform/infrastructure/iam/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.37.0"
version = "6.7.0"
}
}
}
Expand Down

0 comments on commit 96ac712

Please sign in to comment.