Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 646ab4a

Browse files
author
Dylan Peck
authored
Merge pull request #48 from rocpoc/patch-2
Updates for deprecation warnings
2 parents 5632839 + 988058f commit 646ab4a

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

terraform/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ limitations under the License.
1919
// Provides access to available Google Container Engine versions in a zone for a given project.
2020
// https://www.terraform.io/docs/providers/google/d/google_container_engine_versions.html
2121
data "google_container_engine_versions" "on-prem" {
22-
zone = var.zone
23-
project = var.project
22+
location = var.zone
23+
project = var.project
2424
}
2525

2626
# Syntax for using a custom module, which is a collection of resources

terraform/provider.tf

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
// Configure providers and pin versions
18+
terraform {
19+
required_providers {
20+
random = {
21+
source = "hashicorp/random"
22+
version = "~> 2.1.2"
23+
}
24+
template = {
25+
source = "hashicorp/template"
26+
version = "~> 2.1.2"
27+
}
28+
null = {
29+
source = "hashicorp/null"
30+
version = "~> 2.1.2"
31+
}
32+
}
33+
}
34+
1735
// Configures the default project and zone for underlying Google Cloud API calls
1836
provider "google" {
1937
project = var.project
2038
zone = var.zone
21-
version = "~> 2.11.0"
22-
}
23-
24-
// Pins the version of the "random" provider
25-
provider "random" {
26-
version = "~> 2.1.2"
27-
}
28-
29-
// Pins the version of the "template" provider
30-
provider "template" {
31-
version = "~> 2.1.2"
32-
}
33-
34-
// Pins the version of the "null" provider
35-
provider "null" {
36-
version = "~> 2.1.2"
3739
}

0 commit comments

Comments
 (0)