Create custom event windows for scheduled events that affect your Amazon EC2 instances
You can define custom event windows that recur weekly for scheduled events that reboot, stop, or terminate your Amazon EC2 instances. You can associate one or more instances with an event window. If a scheduled event for those instances is planned, AWS will schedule the events within the associated event window.
You can use event windows to maximize workload availability by specifying event windows that occur during off-peak periods for your workload. You can also align the event windows with your internal maintenance schedules.
You define an event window by specifying a set of time ranges. The minimum time range is 2 hours. The combined time ranges must total at least 4 hours.
You can associate one or more instances with an event window by using either instance IDs or instance tags. You can also associate Dedicated Hosts with an event window by using the host ID.
Warning
Event windows are applicable only for scheduled events that stop, reboot, or terminate instances.
Event windows are not applicable for:
-
Expedited scheduled events and network maintenance events.
-
Unscheduled maintenance such as AutoRecovery and unplanned reboots.
Work with event windows
Considerations
-
All event window times are in UTC.
-
The minimum weekly event window duration is 4 hours.
-
The time ranges within an event window must each be at least 2 hours.
-
Only one target type (instance ID, Dedicated Host ID, or instance tag) can be associated with an event window.
-
A target (instance ID, Dedicated Host ID, or instance tag) can only be associated with one event window.
-
A maximum of 100 instance IDs, or 50 Dedicated Host IDs, or 50 instance tags can be associated with an event window. The instance tags can be associated with any number of instances.
-
A maximum of 200 event windows can be created per AWS Region.
-
Multiple instances that are associated with event windows can potentially have scheduled events occur at the same time.
-
If AWS has already scheduled an event, modifying an event window won't change the time of the scheduled event. If the event has a deadline date, you can reschedule the event.
-
You can stop and start an instance prior to the scheduled event, which migrates the instance to a new host, and the scheduled event will no longer take place.
Create event windows
You can create one or more event windows. For each event window, you specify one or more blocks of time. For example, you can create an event window with blocks of time that occur every day at 4 AM for 2 hours. Or you can create an event window with blocks of time that occur on Sundays from 2 AM to 4 AM and on Wednesdays from 3 AM to 5 AM.
For the event window constraints, see Considerations earlier in this topic.
Event windows recur weekly until you delete them.
Use one of the following methods to create an event window.
View event windows
You can view event windows by using one of the following methods.
Modify event windows
You can modify all of the fields of an event window except its ID. For example, when daylight savings begin, you might want to modify the event window schedule. For existing event windows, you might want to add or remove targets.
Use one of the following methods to modify an event window.
Delete event windows
You can delete one event window at a time by using one of the following methods.
Tag event windows
You can tag an event window when you create it, or afterwards.
To tag an event window when you create it, see Create event windows.
Use one of the following methods to tag an event window.