From de9f85237c1bd1b7717b09896f2f3f3bd114205d Mon Sep 17 00:00:00 2001 From: The Magician Date: Fri, 11 Dec 2020 16:02:47 -0800 Subject: [PATCH] Mark replication type computed as it no longer comes back from API (#4312) (#8006) Signed-off-by: Modular Magician --- .changelog/4312.txt | 3 +++ google/resource_sql_database_instance.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .changelog/4312.txt diff --git a/.changelog/4312.txt b/.changelog/4312.txt new file mode 100644 index 00000000000..669f37d0c90 --- /dev/null +++ b/.changelog/4312.txt @@ -0,0 +1,3 @@ +```release-note:bug +sql: fixed a bug in `google_sql_database_instance` that caused a permadiff on `settings.replication_type` +``` diff --git a/google/resource_sql_database_instance.go b/google/resource_sql_database_instance.go index f23e60a95b2..a10d347eecf 100644 --- a/google/resource_sql_database_instance.go +++ b/google/resource_sql_database_instance.go @@ -340,7 +340,7 @@ settings.backup_configuration.binary_log_enabled are both set to true.`, Type: schema.TypeString, Optional: true, Deprecated: "This property is only applicable to First Generation instances, and First Generation instances are now deprecated.", - Default: "SYNCHRONOUS", + Computed: true, Description: `This property is only applicable to First Generation instances. First Generation instances are now deprecated, see here for information on how to upgrade to Second Generation instances. Replication type for this instance, can be one of ASYNCHRONOUS or SYNCHRONOUS.`, }, "user_labels": {