Skip to content

Commit 248b914

Browse files
feat: update TPG version constraints to allow 4.0 (#63)
1 parent 1fdf38e commit 248b914

File tree

9 files changed

+103
-55
lines changed

9 files changed

+103
-55
lines changed

examples/logs-slack-alerts/main.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
provider "google-beta" {
18-
version = "~> 3.33"
19-
project = var.project_id
20-
region = var.region
21-
}
22-
23-
provider "google" {
24-
version = "~> 3.33"
25-
project = var.project_id
26-
region = var.region
27-
}
28-
2917
module "log_slack_alerts_example" {
3018
source = "../../"
3119
project_id = var.project_id
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
terraform {
18+
required_providers {
19+
google = {
20+
source = "hashicorp/google"
21+
version = "~> 4.0"
22+
}
23+
google-beta = {
24+
source = "hashicorp/google-beta"
25+
version = "~> 4.0"
26+
}
27+
}
28+
required_version = ">= 0.13"
29+
}

examples/pubsub_scheduled/main.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "google-beta" {
22-
version = "~> 3.33"
23-
project = var.project_id
24-
region = var.region
25-
}
26-
27-
provider "google" {
28-
version = "~> 3.33"
29-
project = var.project_id
30-
region = var.region
31-
}
32-
3317
resource "random_pet" "main" {
3418
length = 2
3519
separator = "-"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
terraform {
18+
required_providers {
19+
google = {
20+
source = "hashicorp/google"
21+
version = "~> 4.0"
22+
}
23+
google-beta = {
24+
source = "hashicorp/google-beta"
25+
version = "~> 4.0"
26+
}
27+
random = {
28+
source = "hashicorp/random"
29+
}
30+
}
31+
required_version = ">= 0.13"
32+
}

examples/pubsub_scheduled_multiple/main.tf

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "google-beta" {
22-
version = "~> 3.33"
23-
project = var.project_id
24-
region = var.region
25-
}
26-
27-
provider "google" {
28-
version = "~> 3.33"
29-
project = var.project_id
30-
region = var.region
31-
}
32-
3317
module "pubsub_scheduled_1" {
3418
source = "../../"
3519
project_id = var.project_id
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Copyright 2021 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
terraform {
18+
required_providers {
19+
google = {
20+
source = "hashicorp/google"
21+
version = "~> 4.0"
22+
}
23+
google-beta = {
24+
source = "hashicorp/google-beta"
25+
version = "~> 4.0"
26+
}
27+
}
28+
required_version = ">= 0.13"
29+
}

modules/project_cleanup/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020

2121
google = {
2222
source = "hashicorp/google"
23-
version = "~> 3.53"
23+
version = ">= 3.53, < 5.0"
2424
}
2525
}
2626

test/setup/versions.tf

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "google" {
22-
version = "~> 3.53"
23-
}
24-
25-
provider "google-beta" {
26-
version = "~> 3.35"
18+
required_version = ">= 0.13"
19+
required_providers {
20+
google = {
21+
source = "hashicorp/google"
22+
version = "~> 3.53"
23+
}
24+
google-beta = {
25+
source = "hashicorp/google-beta"
26+
version = "~> 3.35"
27+
}
28+
}
2729
}

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ terraform {
2020

2121
google = {
2222
source = "hashicorp/google"
23-
version = "~> 3.53"
23+
version = ">= 3.53, < 5.0"
2424
}
2525
}
2626

0 commit comments

Comments
 (0)