From d450dbf463d908684df4c67c66ec8c2981f75791 Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Sat, 12 Dec 2020 00:02:29 +0000 Subject: [PATCH] Mark replication type computed as it no longer comes back from API (#4312) Signed-off-by: Modular Magician --- .changelog/4312.txt | 3 +++ google-beta/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 0000000000..669f37d0c9 --- /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-beta/resource_sql_database_instance.go b/google-beta/resource_sql_database_instance.go index 3523c3e5d2..742a977451 100644 --- a/google-beta/resource_sql_database_instance.go +++ b/google-beta/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": {