1 Answers
Hi Phani,
You might have already thought about this option, but would Lambda be an option or maybe multiple Lambda via Step Functions? Seems like you have a more event-driven need. I’ve always viewed ECS tasks as more long-running microservice type things that should be up perpetually. Lambda is more appropriate for short-duration actions.
Alternatively, maybe you could trigger a lambda function to terminate the ECS task as part of the last step in the process?
Just thoughts…
–Scott
Hi Scott — thanks. Yes Lambda is more appropriate for such an action… however, the requirement is to retrieve stream of data from s3 and store in an on-prem data-store. And my understanding is that Lambda cannot handle large data-sets.
And yeah, this was how I thought it through as well — trigger a lambda function to terminate the ECS task as part of the last step in the process.