Reschedule scheduled events that affect your Amazon EC2 instances - Amazon Elastic Compute Cloud

Reschedule scheduled events that affect your Amazon EC2 instances

You can reschedule an event so that it occurs at a specific date and time that suits you. Only events that have a deadline date can be rescheduled. There are other limitations for rescheduling an event.

You can reschedule an event by using one of the following methods.

Console
To reschedule an event
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Events.

  3. Choose Resource type: instance from the filter list.

  4. Select one or more instances, and then choose Actions, Schedule event.

    Only events that have an event deadline date, indicated by a value for Deadline, can be rescheduled. If one of the selected events does not have a deadline date, Actions, Schedule event is disabled.

  5. For New start time, enter a new date and time for the event. The new date and time must occur before the Event deadline.

  6. Choose Save.

    It might take a minute or two for the updated event start time to be reflected in the console.

AWS CLI
To reschedule an event
  1. Only events that have an event deadline date, indicated by a value for NotBeforeDeadline, can be rescheduled. Use the describe-instance-status command to view the NotBeforeDeadline parameter value.

    aws ec2 describe-instance-status \ --instance-id i-1234567890abcdef0

    The following example output shows a system-reboot event that can be rescheduled because NotBeforeDeadline contains a value.

    [ "Events": [ { "InstanceEventId": "instance-event-0d59937288b749b32", "Code": "system-reboot", "Description": "The instance is scheduled for a reboot", "NotAfter": "2019-03-14T22:00:00.000Z", "NotBefore": "2019-03-14T20:00:00.000Z", "NotBeforeDeadline": "2019-04-05T11:00:00.000Z" } ] ]
  2. To reschedule the event, use the modify-instance-event-start-time command. Specify the new event start time by using the not-before parameter. The new event start time must fall before the NotBeforeDeadline.

    aws ec2 modify-instance-event-start-time \ --instance-id i-1234567890abcdef0 \ --instance-event-id instance-event-0d59937288b749b32 \ --not-before 2019-03-25T10:00:00.000

    It might take a minute or two before the describe-instance-status command returns the updated not-before parameter value.

Limitations

  • Only events with an event deadline date can be rescheduled. The event can be rescheduled up to the event deadline date. The Deadline column in the console and the NotBeforeDeadline field in the AWS CLI indicate if the event has a deadline date.

  • Only events that have not yet started can be rescheduled. The Start time column in the console and the NotBefore field in the AWS CLI indicate the event start time. Events that are scheduled to start in the next 5 minutes cannot be rescheduled.

  • The new event start time must be at least 60 minutes from the current time.

  • If you reschedule multiple events using the console, the event deadline date is determined by the event with the earliest event deadline date.