2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
Hi, I would look into:
- EventBridge Scheduler: https://aws.amazon.com/blogs/compute/introducing-amazon-eventbridge-scheduler/
- EC2 spot instance. Spot Fleet (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet.html). An alternative to Spot instances is to use ECS or Fargate, but then I would suggest to destroy the environment in case you do not want to incur into cost, since you want to running only for one hour.
- If above (EventtBridge scheduler) is not an option, then you may look into AWS Batch (https://aws.amazon.com/batch/)
Hope it helps ;)
0
The answer above seems very attractive to solve your isssue. I'd like to contribute with something else. If you cron job runs and depends on linux platform for a number of reason(s): Setup a Lambda to start your EC2 instance, starts your cron as fixed schedule and after an hour, a Lambda stops your EC2 instance.
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor 8 Monaten
- AWS OFFICIALAktualisiert vor 3 Jahren
The EventBridge Scheduler requires a lambda function. But our cronjob will run for 1 hr. So lambda function might not help