awslabs / rds-snapshot-tool

The Snapshot Tool for Amazon RDS automates the task of creating manual snapshots, copying them into a different account and a different region, and deleting them after a specified number of days
Apache License 2.0
341 stars 144 forks source link

Error when creating the stack #56

Open snacks-lord opened 4 years ago

snacks-lord commented 4 years ago

I am getting this error when creating the stack in CF.

Parameter ScheduleExpression is not valid. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException; Request ID: d50ae7df-e029-4be2-8755-e7ccf3701bdf)

mrcoronel commented 4 years ago

Could it be an issue with the schedule expression? Can you validate against https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions ?

snacks-lord commented 4 years ago

I did check against that page before opening this issue and it looked right to me.

I also used the example in the instructions to start from. Does this not look right?

`       "BackupInterval": {
            "Type": "Number",
            "Default": "3",
            "Description": "Interval for backups in hours. Default is 24"
...
        "BackupSchedule": {
            "Type": "String",
            "Default": "0 0 3 6 9 12 15 18 21 * * ? *",
            "Description": "Backup schedule in Cloudwatch Event cron format. Needs to run at least once for every Interval. The default value runs once every at 1AM UTC. More information: http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html"
        },
`
mrcoronel commented 4 years ago

I am assuming you'd like to run it on those hours. If that is the case, I believe "0 0,3,6,9,12,15,18.21 ? *" should work