Update to Terraform 1.x (#68)
* Bump tf to version 1.0 * Bump terraform-aws-ci * Mark private key output as sensitive * remove deprecated list() function
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
# MySQL
|
||||
[](https://gruntwork.io/?ref=repo_google_cloudsql)
|
||||
[](http://github.com/gruntwork-io/terraform-google-sql/releases/latest)
|
||||

|
||||

|
||||
|
||||
This module deploys MySQL on top of Google's Cloud SQL Service. The cluster is managed by GCP and automatically handles
|
||||
standby failover, read replicas, backups, patching, and encryption.
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# PostgreSQL
|
||||
[](https://gruntwork.io/?ref=repo_google_cloudsql)
|
||||
[](http://github.com/gruntwork-io/terraform-google-sql/releases/latest)
|
||||

|
||||

|
||||
|
||||
This module deploys PostgreSQL on top of Google's Cloud SQL Service. The cluster is managed by GCP and automatically handles
|
||||
standby failover, read replicas, backups, patching, and encryption.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[](https://gruntwork.io/?ref=repo_google_cloudsql)
|
||||
[](http://github.com/gruntwork-io/terraform-google-sql/releases/latest)
|
||||

|
||||

|
||||
|
||||
|
||||
<!-- NOTE: We use absolute linking here instead of relative linking, because the terraform registry does not support
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
terraform {
|
||||
# This module is now only being tested with Terraform 0.14.x. However, to make upgrading easier, we are setting
|
||||
# This module is now only being tested with Terraform 1.0.x. However, to make upgrading easier, we are setting
|
||||
# 0.12.26 as the minimum version, as that version added support for required_providers with source URLs, making it
|
||||
# forwards compatible with 0.14.x code.
|
||||
# forwards compatible with 1.0.x code.
|
||||
required_version = ">= 0.12.26"
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ resource "google_sql_database_instance" "master" {
|
||||
}
|
||||
|
||||
dynamic "location_preference" {
|
||||
for_each = var.master_zone == null ? [] : list(var.master_zone)
|
||||
for_each = var.master_zone == null ? [] : [var.master_zone]
|
||||
|
||||
content {
|
||||
zone = location_preference.value
|
||||
@@ -205,7 +205,7 @@ resource "google_sql_database_instance" "failover_replica" {
|
||||
}
|
||||
|
||||
dynamic "location_preference" {
|
||||
for_each = var.mysql_failover_replica_zone == null ? [] : list(var.mysql_failover_replica_zone)
|
||||
for_each = var.mysql_failover_replica_zone == null ? [] : [var.mysql_failover_replica_zone]
|
||||
|
||||
content {
|
||||
zone = location_preference.value
|
||||
|
||||
Reference in New Issue
Block a user