Jwf
Jwf

Reputation: 305

Running scheduled Tasks on AWS

I want to know what is the best way to run a scheduled task on AWS. Specifically I would like to only pay for the computation that is needed to run the task. So if the tasks runs once per day for 2h, then I only will pay for the 2h computation. So I don't want to have an EC2 instance running all the time, when the task is not running.

Could an AWS expert please explain how to realize this on AWS?

Upvotes: 1

Views: 2480

Answers (1)

Ivan Shumov
Ivan Shumov

Reputation: 644

AWS ECS Scheduled Tasks is perfect solution for you. You can run ECS Tasks on top on AWS Fargate, so, you don't need to provision any EC2 instances. It's complete Serverless solution with simple type of configuration.

Related information:

Also you can just run and stop EC2 instances by AWS CloudWatch Event (cron scheduler)

Upvotes: 3

Related Questions