Skip to content

Commit

Permalink
fix: add lower version constraint to Terraform Google provider (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-cit authored Dec 12, 2024
1 parent 2058799 commit eebcdc0
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 19 deletions.
2 changes: 1 addition & 1 deletion modules/job-exec/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ terraform {
}
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
}
provider_meta "google" {
Expand Down
4 changes: 2 additions & 2 deletions modules/secure-cloud-run-core/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions modules/secure-cloud-run-security/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/secure-cloud-run/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/secure-serverless-harness/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions modules/secure-serverless-net/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
}

Expand Down
4 changes: 2 additions & 2 deletions modules/service-project-factory/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
random = {
source = "hashicorp/random"
Expand Down
4 changes: 2 additions & 2 deletions modules/v2/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
}

Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/secure_cloud_run/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = ">= 3.53"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 3.53"
version = ">= 6, < 7"
}
}
}
11 changes: 11 additions & 0 deletions test/fixtures/simple_cloud_run/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@

terraform {
required_version = ">= 0.13"

required_providers {
google = {
source = "hashicorp/google"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = ">= 6, < 7"
}
}
}
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "< 7"
version = ">= 6, < 7"
}
google-beta = {
source = "hashicorp/google-beta"
version = "< 7"
version = ">= 6, < 7"
}
}

Expand Down

0 comments on commit eebcdc0

Please sign in to comment.