0
votes

So I have set up a Lambda function that shuts down a couple of my Instances in AWS. I am trying to set up a CloudWatch rule that fires the function every night at 11.59pm.

I am using the Cron expression: 59 11 * * ? *

Everything looks to be set up but nothing happens in the EC2 Dashboard and the instance does not shutdown. I have run tests on the function and it works fine not sure where to start and any help would be appreciated.

1

1 Answers

1
votes

The cron expression for 23:59 PM or (11:59 PM in 12 hours clock) would this if I'm not wrong. It may be the issue here:

59 23 * * ? *