Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit 9624bda

Browse files
committed
update modules and examples for tf 0.13
1 parent f10e793 commit 9624bda

File tree

9 files changed

+39
-22
lines changed

9 files changed

+39
-22
lines changed

examples/client-certificate/main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ provider "google-beta" {
1515
terraform {
1616
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
1717
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
18+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
19+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
20+
# forwards compatible with 0.13.x code.
21+
required_version = ">= 0.12.26"
1922
}
2023

2124
# ------------------------------------------------------------------------------

examples/mysql-private-ip/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

examples/mysql-public-ip/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

examples/mysql-replicas/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

examples/postgres-private-ip/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

examples/postgres-public-ip/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

examples/postgres-replicas/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ provider "google-beta" {
1313
}
1414

1515
terraform {
16-
# The modules used in this example have been updated with 0.12 syntax, which means the example is no longer
17-
# compatible with any versions below 0.12.
18-
required_version = ">= 0.12"
16+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
17+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
18+
# forwards compatible with 0.13.x code.
19+
required_version = ">= 0.12.26"
1920
}
2021

2122
# ------------------------------------------------------------------------------

modules/cloud-sql/main.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
# election, replication, failover, backups, patching, and encryption.
55
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66

7+
terraform {
8+
# This module is now only being tested with Terraform 0.13.x. However, to make upgrading easier, we are setting
9+
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
10+
# forwards compatible with 0.13.x code.
11+
required_version = ">= 0.12.26"
12+
}
13+
714
# ------------------------------------------------------------------------------
815
# PREPARE LOCALS
916
#

0 commit comments

Comments
 (0)