mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-07 03:01:06 +00:00
provider/google-cloud: Add maintenance window (#12042)
* provider/google-cloud: Add maintenance window Allows specification of the `maintenance_window` within the `settings` block. This controls when Google will restart a database in order to apply updates. It is also possible to select an `update_track` to relatively control updating between instances in the same project. * Adjustments as suggested in code review.
This commit is contained in:
parent
2d4b3c2205
commit
c866f8bf6c
@ -134,6 +134,17 @@ The optional `settings.location_preference` subblock supports:
|
||||
* `zone` - (Optional) The preferred compute engine
|
||||
[zone](https://cloud.google.com/compute/docs/zones?hl=en).
|
||||
|
||||
The optional `settings.maintenance_window` subblock for Second Generation
|
||||
instances declares a one-hour [maintenance window](https://cloud.google.com/sql/docs/instance-settings?hl=en#maintenance-window-2ndgen)
|
||||
when an Instance can automatically restart to apply updates. It supports:
|
||||
|
||||
* `day` - (Optional) Day of week (`1-7`), starting on Monday
|
||||
|
||||
* `hour` - (Optional) Hour of day (`0-23`), ignored if `day` not set
|
||||
|
||||
* `update_track` - (Optional) Receive updates earlier (`canary`) or later
|
||||
(`stable`)
|
||||
|
||||
The optional `replica_configuration` block must have `master_instance_name` set
|
||||
to work, cannot be updated, and supports:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user