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
Adding support for point_in_time_recovery_enabled flag in mssql instances (#7096) (#13454)
* Added validation for "type" in cloud_sql_user_resource for preventing user from setting "password" or "host" for CLOUD_IAM_USER and CLOUD_IAM_SERVICE_ACCOUNT user types.
* Removed validation and added documentation to prevent setting of host or password field for CLOUD_IAM_USER and CLOUD_IAM_SERVICE_ACCOUNT
* Updated the validation function to allow the setting of flag for mssql instance, since the API supports it now. Updated documntation as well.
* Updated the validation function to allow the setting of flag for mssql instance, since the API supports it now. Updated documntation as well.
* Added test function for checking support for point_in_time_recovery_enabled flag in Sql Server.
Signed-off-by: Modular Magician <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
returnfmt.Errorf("point_in_time_recovery_enabled is only available for Postgres and SQL Server. You may want to consider using binary_log_enabled instead.")
Copy file name to clipboardExpand all lines: website/docs/r/sql_database_instance.html.markdown
+2-2
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ The `settings` block supports:
235
235
instance, high availability (`REGIONAL`) or single zone (`ZONAL`).' For all instances, ensure that
236
236
`settings.backup_configuration.enabled` is set to `true`.
237
237
For MySQL instances, ensure that `settings.backup_configuration.binary_log_enabled` is set to `true`.
238
-
For Postgres instances, ensure that `settings.backup_configuration.point_in_time_recovery_enabled`
238
+
For Postgres and SQL Server instances, ensure that `settings.backup_configuration.point_in_time_recovery_enabled`
239
239
is set to `true`. Defaults to `ZONAL`.
240
240
241
241
*`collation` - (Optional) The name of server instance collation.
@@ -294,7 +294,7 @@ The optional `settings.backup_configuration` subblock supports:
294
294
295
295
*`start_time` - (Optional) `HH:MM` format time indicating when backup
296
296
configuration starts.
297
-
*`point_in_time_recovery_enabled` - (Optional) True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL instances.
297
+
*`point_in_time_recovery_enabled` - (Optional) True if Point-in-time recovery is enabled. Will restart database if enabled after instance creation. Valid only for PostgreSQL and SQL Server instances.
298
298
299
299
*`location` - (Optional) The region where the backup will be stored
0 commit comments