Using Console
Using CLI
[PROJECT_ID]
with the ID of your GCP project.maintenance-policy.yaml
. You can modify this file to set up your desired maintenance window and exclusions.maintenance-policy.yaml
file to specify your desired maintenance window and exclusions. For example:maintenance-policy.yaml
file.
Using Python
project
, zone
, instance
, start_time
, and end_time
variables with your own values. This will create a maintenance window for the specified instance.project
, zone
, and instance
variables with your own values. This will exclude the specified instance from all maintenance windows.By following the above steps, you can remediate the “Schedule Maintenance Windows And Exclusions” misconfiguration in GCP using Python.