Luis Molina
Luis Molina

Reputation: 577

how to create new scheduled event in amazon aws?

I want to create a new scheduled event to reboot an instance every two days, how can I do it?

I have seen the events pane option, but I don't see any option to create a new scheduled event.

Upvotes: 1

Views: 2138

Answers (2)

Kushan Gunasekera
Kushan Gunasekera

Reputation: 8556

Apart from the above answer, you can use either EventBridge Scheduler or EventBridge Rules. It's better to use EventBridge Scheduler. Then you can create a schedule and set the target as the AWS Lambda function. In the AWS Lambda function, you can code it to restart your instance(s).

Upvotes: 0

Michael - sqlbot
Michael - sqlbot

Reputation: 179054

I assume you're referring to these events:

AWS can schedule events for your instances, such as a reboot, stop/start, or retirement.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html

Those are only scheduled by AWS personnel or systems, and they are only applicable to AWS-initiated maintenance of the systems underlying EC2.

EC2 and AWS overall, does not have a user-initiated event scheduler.

To schedule an instance reboot for your own reasons, either a cron job on the instance itself or an external event-emitting system is needed.

Upvotes: 1

Related Questions