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

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).

Create Policy Setting form with Change Window searched in the Policy Type field, showing three matching results

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.

Create Policy Setting form showing the Change Window value options with Forced Changes Only selected

ValueDescription
No ChangesBlock all automated enforcement actions. No changes occur outside the window.
Forced Changes OnlyAutomated actions are blocked, but an admin can manually run a control to force a change.
Turbot Event Handlers OnlyOnly event handler stack controls are allowed to run (to maintain event handler infrastructure).
Turbot Event Handlers and Forced Changes OnlyEvent handler controls run automatically, and admins can manually force other changes.
All ChangesNo 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.

Create Policy Setting form showing the Schedule YAML editor with a daily maintenance window definition

The schedule format is a YAML list of objects:

- name: Daily
  description: 'Daily, 12am - 5am UTC'
  cron: '0 0 * * *'
  duration: 5
FieldDescription
nameA label for the window (1 to 64 characters).
descriptionA human-readable description of when the window occurs.
cronA cron expression defining when the window starts. Uses standard 5-field cron syntax.
durationThe 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:

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 Update policy 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

IssueSolution
Automated actions still running outside the windowVerify 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 windowCheck 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 windowIf the policy is set to Forced Changes Only, navigate to the control and manually run it.
Cron expression not acceptedUse standard 5-field cron syntax: minute hour day-of-month month day-of-week. For example, 0 0 * * * for midnight daily.
Further assistanceOpen a Support Ticket

Next Steps