[ECS-Fargate] [request]: Document Cloudwatch rule and ECS Task Behavior
- Dominant language
- Shell
- Stars
- 5.4k
- Forks
- 334
- PR merge metrics
- No merged PRs in 30d
Description
I have found that when triggering an ECS task from a Cloudwatch rule cron, if the task is already running, it does not create another instance/container of the task, even though the ECS task time started is updated to the time the rule executed. This is on Fargate Platform version 1.4. Per issue #232 I think the concurrency of ECS Fargate Tasks should be documented as it is not clear. Or there should be singleton and concurrent task types, although creating a Service seems to clarify some of this as you can create desired number of task instances. AWS Batch is a solution for some use cases and Step Functions (State Machine) for others.
I am currently implementing a Step Function for my use case. At a minimum the behavior of Cloudwatch Rule ECS Task trigger seems to need documentation.
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
Contributor guide
Research direction
Start by reviewing the reported CloudWatch rule ECS task trigger behavior on Fargate platform version 1.4 and the related discussion in issue #232. Confirm whether an already-running task prevents a new task instance, then document the observed concurrency behavior and how Services, AWS Batch, or Step Functions relate to the use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud, documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100