2 個答案
- 最新
- 最多得票
- 最多評論
1
Hello.
For such use cases, it would be a good idea to set up an Eventbridge scheduler.
This can be used to start or stop EC2 at a specific time.
https://docs.aws.amazon.com/scheduler/latest/UserGuide/what-is-scheduler.html
The following blog describes the automation of EC2 outages.
Automation of EC2 startup can be set up in the same way.
https://dev.to/aws-builders/easy-setup-for-ec2-stop-jobs-with-amazon-eventbridge-scheduler-4lpg
1
If all you need is a cron job, just use EventBridge Scheduler to define the schedule. The Scheduler can invoke a Lambda function to perform the actual work. No need for an EC2 instance.
相關內容
- 已提問 7 個月前
- AWS 官方已更新 7 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 4 個月前