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: mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl
+53-12
Original file line number
Diff line number
Diff line change
@@ -925,6 +925,27 @@ is set to true. Defaults to ZONAL.`,
925
925
},
926
926
Description: `The replicas of the instance.`,
927
927
},
928
+
"replication_cluster": {
929
+
Type: schema.TypeList,
930
+
Computed: true,
931
+
Optional: true,
932
+
MaxItems: 1,
933
+
Elem: &schema.Resource{
934
+
Schema: map[string]*schema.Schema{
935
+
"failover_dr_replica_name": {
936
+
Type: schema.TypeString,
937
+
Optional: true,
938
+
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.`),
939
+
},
940
+
"dr_replica": {
941
+
Type: schema.TypeBool,
942
+
Computed: true,
943
+
Description: `Read-only field that indicates whether the replica is a DR replica.`,
944
+
},
945
+
},
946
+
},
947
+
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.",
948
+
},
928
949
"server_ca_cert": {
929
950
Type: schema.TypeList,
930
951
Computed: true,
@@ -1719,6 +1740,11 @@ func resourceSqlDatabaseInstanceRead(d *schema.ResourceData, meta interface{}) e
1719
1740
if err := d.Set("replica_names", instance.ReplicaNames); err != nil {
0 commit comments