You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: google-beta/services/sql/resource_sql_database_instance.go
+53-12
Original file line number
Diff line number
Diff line change
@@ -927,6 +927,27 @@ is set to true. Defaults to ZONAL.`,
927
927
},
928
928
Description: `The replicas of the instance.`,
929
929
},
930
+
"replication_cluster": {
931
+
Type: schema.TypeList,
932
+
Computed: true,
933
+
Optional: true,
934
+
MaxItems: 1,
935
+
Elem: &schema.Resource{
936
+
Schema: map[string]*schema.Schema{
937
+
"failover_dr_replica_name": {
938
+
Type: schema.TypeString,
939
+
Optional: true,
940
+
Description: fmt.Sprintf(`If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.`),
941
+
},
942
+
"dr_replica": {
943
+
Type: schema.TypeBool,
944
+
Computed: true,
945
+
Description: `Read-only field that indicates whether the replica is a DR replica.`,
946
+
},
947
+
},
948
+
},
949
+
Description: "A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.",
950
+
},
930
951
"server_ca_cert": {
931
952
Type: schema.TypeList,
932
953
Computed: true,
@@ -1721,6 +1742,11 @@ func resourceSqlDatabaseInstanceRead(d *schema.ResourceData, meta interface{}) e
0 commit comments