Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating the stack #56

Open
snacks-lord opened this issue Jan 29, 2020 · 3 comments
Open

Error when creating the stack #56

snacks-lord opened this issue Jan 29, 2020 · 3 comments

Comments

@snacks-lord
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants