Skip to content

Commit

Permalink
feat: update TPG version constraints to allow 4.0 (#143)
Browse files Browse the repository at this point in the history
Co-authored-by: Bharath KKB <bharathkrishnakb@gmail.com>
  • Loading branch information
cloud-foundation-bot and bharathkkb authored Nov 18, 2021
1 parent bbb681d commit 2e4c375
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 18 deletions.
4 changes: 0 additions & 4 deletions examples/multiple_buckets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

provider "google" {
version = "~> 3.53.0"
}

resource "random_string" "prefix" {
length = 4
upper = false
Expand Down
11 changes: 10 additions & 1 deletion examples/multiple_buckets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
random = {
source = "hashicorp/random"
}
}
}
8 changes: 7 additions & 1 deletion examples/simple_bucket/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 4.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/simple_bucket/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down
4 changes: 0 additions & 4 deletions test/fixtures/multiple_buckets/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* limitations under the License.
*/

provider "random" {
version = "~> 2.0"
}

module "example" {
source = "../../../examples/multiple_buckets"
project_id = var.project_id
Expand Down
8 changes: 7 additions & 1 deletion test/fixtures/multiple_buckets/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
*/

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
random = {
source = "hashicorp/random"
version = "~> 2.0"
}
}
}
12 changes: 7 additions & 5 deletions test/setup/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
* limitations under the License.
*/

provider "google" {
version = "~> 3.53.0"
}

terraform {
required_version = ">= 0.12"
required_version = ">= 0.13"
required_providers {
google = {
source = "hashicorp/google"
version = "~> 3.53.0"
}
}
}
2 changes: 1 addition & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ terraform {

google = {
source = "hashicorp/google"
version = "~> 3.53"
version = ">= 3.53, < 5.0"
}
}

Expand Down

0 comments on commit 2e4c375

Please sign in to comment.