StartTask V/S Fargate 中的 RunTask

StartTask V/S RunTask in Fargate

我正在编写 AWS IAM 权限。我们的用例只有 AWS Fargate。阅读 documentation 后,似乎 AWS fargate 不需要 StartTask,但我需要为 RunTask 授予权限。找不到与此相关的任何文档?

任何人都可以confirm/point查看文档吗?

谢谢

See documentation here 在您的情况下,您必须使用 运行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.

开始任务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.