The TF plan shows the following:
# aws_scheduler_schedule.gh_runners_ubuntu_start["gh_runner_ubuntu"] will be created
+ resource "aws_scheduler_schedule" "gh_runners_ubuntu_start" {
+ arn = (known after apply)
+ group_name = (known after apply)
+ id = (known after apply)
+ name = "gh_runners_ubuntu_start-ormos-runner"
+ name_prefix = (known after apply)
+ schedule_expression = "cron(0 23 * * *)"
+ schedule_expression_timezone = "UTC"
+ state = "ENABLED"
+ flexible_time_window {
+ mode = "OFF"
}
+ target {
+ arn = "arn:aws:scheduler:::aws-sdk:ec2:startInstances"
+ input = jsonencode(
{
+ InstanceIds = [
+ "i-xxxxxxxxxxxxxxxxx",
]
}
)
+ role_arn = "arn:aws:iam::12345678:role/gh_runners_ubuntu_scheduler_role-runner"
}
}
Creation fails with:
ValidationException: Invalid Schedule Expression cron(0 23 * * *).
Any ideas?