Skip to content

Commit 112482a

Browse files
feat: update TPG version constraints to allow 4.0 (#81)
1 parent 26f9588 commit 112482a

File tree

13 files changed

+163
-68
lines changed

13 files changed

+163
-68
lines changed

examples/automatic-labelling-folder/main.tf

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

17-
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "archive" {
22-
version = "~> 1.0"
23-
}
24-
25-
provider "google" {
26-
version = "~> 3.39"
27-
}
28-
29-
provider "random" {
30-
version = "~> 2.0"
31-
}
32-
33-
provider "null" {
34-
version = "~> 2.1"
35-
}
36-
3717
resource "random_pet" "main" {
3818
length = 2
3919
separator = "-"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
archive = {
20+
source = "hashicorp/archive"
21+
version = "~> 1.0"
22+
}
23+
google = {
24+
source = "hashicorp/google"
25+
version = "~> 4.0"
26+
}
27+
null = {
28+
source = "hashicorp/null"
29+
version = "~> 2.1"
30+
}
31+
random = {
32+
source = "hashicorp/random"
33+
version = "~> 2.0"
34+
}
35+
}
36+
required_version = ">= 0.13"
37+
}

examples/automatic-labelling-from-localhost/main.tf

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

17-
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "archive" {
22-
version = "~> 1.0"
23-
}
24-
25-
provider "google" {
26-
version = "~> 3.39"
27-
}
28-
29-
provider "random" {
30-
version = "~> 2.0"
31-
}
32-
33-
provider "null" {
34-
version = "~> 2.1"
35-
}
36-
3717
resource "random_pet" "main" {
3818
separator = "-"
3919
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
archive = {
20+
source = "hashicorp/archive"
21+
version = "~> 1.0"
22+
}
23+
google = {
24+
source = "hashicorp/google"
25+
version = "~> 4.0"
26+
}
27+
null = {
28+
source = "hashicorp/null"
29+
version = "~> 2.1"
30+
}
31+
random = {
32+
source = "hashicorp/random"
33+
version = "~> 2.0"
34+
}
35+
}
36+
required_version = ">= 0.13"
37+
}

examples/automatic-labelling-from-repository/main.tf

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

17-
terraform {
18-
required_version = ">= 0.12"
19-
}
20-
21-
provider "archive" {
22-
version = "~> 1.0"
23-
}
24-
25-
provider "google" {
26-
version = "~> 3.39"
27-
}
28-
29-
provider "random" {
30-
version = "~> 2.0"
31-
}
32-
33-
provider "null" {
34-
version = "~> 2.1"
35-
}
36-
3717
resource "random_pet" "main" {
3818
separator = "-"
3919
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
archive = {
20+
source = "hashicorp/archive"
21+
version = "~> 1.0"
22+
}
23+
google = {
24+
source = "hashicorp/google"
25+
version = "~> 4.0"
26+
}
27+
null = {
28+
source = "hashicorp/null"
29+
version = "~> 2.1"
30+
}
31+
random = {
32+
source = "hashicorp/random"
33+
version = "~> 2.0"
34+
}
35+
}
36+
required_version = ">= 0.13"
37+
}

examples/delete-vms-without-cmek/main.tf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,12 @@ terraform {
1919
}
2020

2121
provider "archive" {
22-
version = "~> 1.0"
2322
}
2423

2524
provider "google" {
26-
version = "~> 3.39"
2725
}
2826

2927
provider "random" {
30-
version = "~> 2.0"
3128
}
3229

3330
resource "random_pet" "main" {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
archive = {
20+
source = "hashicorp/archive"
21+
version = "~> 1.0"
22+
}
23+
google = {
24+
source = "hashicorp/google"
25+
version = "~> 4.0"
26+
}
27+
random = {
28+
source = "hashicorp/random"
29+
version = "~> 2.0"
30+
}
31+
}
32+
required_version = ">= 0.13"
33+
}

examples/dynamic-files/versions.tf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,19 @@
1515
*/
1616

1717
terraform {
18-
required_version = ">= 0.12"
18+
required_version = ">= 0.13"
19+
required_providers {
20+
google = {
21+
source = "hashicorp/google"
22+
}
23+
local = {
24+
source = "hashicorp/local"
25+
}
26+
null = {
27+
source = "hashicorp/null"
28+
}
29+
random = {
30+
source = "hashicorp/random"
31+
}
32+
}
1933
}

modules/event-folder-log-entry/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)