Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StartTask V/S RunTask in Fargate

I was writing AWS IAM permissions. Our use case is only AWS Fargate. After reading the documentation it seems like StartTask is not required for AWS fargate but I will need to give permissions for RunTask. Could not find any document related to this?

Can anybody confirm/point to the docs?

Thanks

like image 545
rahuljain1311 Avatar asked Nov 02 '25 15:11

rahuljain1311


1 Answers

See documentation here In your case you have to use RunTask

Run Task API

The RunTask action is ideally suited for processes such as batch jobs that perform work and then stop. For example, you could have a process call RunTask when work comes into a queue. The task pulls work from the queue, performs the work, and then exits.

Start Task API

Custom schedulers use the StartTask API operation to place tasks on specific container instances within your cluster.

Custom schedulers are only compatible with tasks using the EC2 launch type. If you are using the Fargate launch type for your tasks, the StartTask API does not work.

like image 84
Sajeer Noohukannu Avatar answered Nov 04 '25 06:11

Sajeer Noohukannu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!