Set Change Windows
In this guide, you will configure the Turbot > Change Window and Turbot > Change Window > Schedule policies to control when Guardrails can make automated changes to your cloud resources. Change windows let you restrict enforcement actions to designated maintenance periods, such as nightly or weekend windows, so that automated remediation doesn't disrupt production workloads during business hours.
Prerequisites
- Access to the Guardrails console with
Turbot/AdminorTurbot/Ownerpermissions.
Step 1: Create the Change Window Policy Setting
Navigate to Policies in the sidebar and click New Policy Setting in the top right to open the Create Policy Setting form.
For the Policy Type, search for Change Window and select Change Window (under Turbot).

For the Resource, select Turbot (the workspace root) to apply the change window across your entire environment, or a specific folder or account to restrict changes in only part of your hierarchy. This example scopes it to an account.
Step 2: Configure the Change Window Value
The Setting shows the behavior you want Guardrails to follow outside of scheduled change windows.

| Value | Description |
|---|---|
| No Changes | Block all automated enforcement actions. No changes occur outside the window. |
| Forced Changes Only | Automated actions are blocked, but an admin can manually run a control to force a change. |
| Turbot Event Handlers Only | Only event handler stack controls are allowed to run (to maintain event handler infrastructure). |
| Turbot Event Handlers and Forced Changes Only | Event handler controls run automatically, and admins can manually force other changes. |
| All Changes | No restrictions, all enforcement actions run normally. This is the default. |
For most organizations, Forced Changes Only is the right choice. It prevents automated remediation outside the maintenance window while still allowing admins to handle urgent issues manually.
The form also provides Enable calculated mode (to compute the value from a template), Precedence (Required or Recommended), Add expiration (useful for temporary change freezes), and Add note.
Select your value and click Create.
Step 3: Create the Schedule Policy Setting
The Change Window policy controls what happens outside the window. The Schedule policy defines when the window opens. Without a schedule, Guardrails has no window to open, so you need both policies.
Click New Policy Setting again. For the Policy Type, search for Change Window Schedule and select Schedule (under Turbot > Change Window). Select the same Resource scope.
Step 4: Define the Schedule
Because this policy is an array, the Setting shows a YAML editor. Each entry defines a recurring window when Guardrails is permitted to make changes.

The schedule format is a YAML list of objects:
- name: Daily
description: 'Daily, 12am - 5am UTC'
cron: '0 0 * * *'
duration: 5
| Field | Description |
|---|---|
| name | A label for the window (1 to 64 characters). |
| description | A human-readable description of when the window occurs. |
| cron | A cron expression defining when the window starts. Uses standard 5-field cron syntax. |
| duration | The window length in hours (1 to 24). |
You can define multiple windows by adding more entries to the YAML list:
- name: Daily
description: 'Daily, 12am - 5am UTC'
cron: '0 0 * * *'
duration: 5
- name: Weekend
description: 'Weekly, Saturdays 6am - 6pm UTC'
cron: '0 6 * * SAT'
duration: 12
[!IMPORTANT] All schedule times are in UTC. Make sure to convert your local maintenance window times to UTC before configuring.
Click Create to save the schedule.
Step 5: Verify
Return to the Policies page and search for change window. You should see both policy settings in the list:
- Change Window with your selected value (for example,
Forced Changes Only). - Schedule with your cron schedule.
The change window takes effect immediately. During the scheduled window, all changes are allowed and any queued actions run. Outside the window, Guardrails enforces the restrictions you configured.
[!NOTE] The
Turbot > Mod > Auto Updatepolicy has its own separate schedule (Turbot > Mod > Auto Update > Schedule) and is not restricted by the Change Window policies. If you need to control when mod updates occur, configure the mod auto update schedule separately. See Enable Auto Mod Updates.
Troubleshooting
| Issue | Solution |
|---|---|
| Automated actions still running outside the window | Verify the Change Window policy is set to something other than All Changes. Confirm the policy is set on the correct resource scope. |
| Queued actions not running during the window | Check that the Schedule policy is configured and the cron expression is correct. Verify times are in UTC. |
| Need to allow an emergency change outside the window | If the policy is set to Forced Changes Only, navigate to the control and manually run it. |
| Cron expression not accepted | Use standard 5-field cron syntax: minute hour day-of-month month day-of-week. For example, 0 0 * * * for midnight daily. |
| Further assistance | Open a Support Ticket |
Next Steps
- Enable Auto Mod Updates, Configure a separate maintenance window for mod updates.
- Learn more about Policies and how policy settings are inherited across your resource hierarchy.