getmoto / moto

A library that allows you to easily mock out tests based on AWS infrastructure.
http://docs.getmoto.org/en/latest/
Apache License 2.0
7.6k stars 2.03k forks source link

Scheduler: start_date parameter validation (create_schedule) #8172

Open vinicius-oa opened 5 hours ago

vinicius-oa commented 5 hours ago

There is a missing validation on the start_date parameter in create_schedule action if the schedule_expression is recurrence and start_date is today's date, so there might be a ValidationException with the message: The StartDate you specify cannot be earlier than 5 minutes ago.