Create Fargate service that starts at 0 and scale upon trigger by SQS eventbridge

0

I have a function hosted in a container on Fargate that needs to be activated by an SQS message via EventBridge. I am trying to setup the container in an ECS cluster as a service so the EventBridge works. When setting it up it seems to want to run the task straight away. I would like to have it sat there inactively and then turned on by the EventBridge. This would also require scaling up to 100 or more concurrent runs. Can you advise on what settings would achieve this.

2 個答案
0

Hello.

Perhaps the configurations described in the documentation below may be helpful.
This configuration uses SQS CloudWatch metrics to scale ECS.
By using this, it is possible to start an ECS task when messages accumulate in SQS.
https://aws.amazon.com/jp/blogs/containers/amazon-elastic-container-service-ecs-auto-scaling-using-custom-metrics/

profile picture
專家
已回答 5 個月前
0

Despite being a Serverless offering, Fargate is still a container (which doesn’t scale to zero) so it may trigger the task execution the first time.

Check this out for inspiration and troubleshoot https://repost.aws/questions/QUWzWBso4ySf--xcke9Ww3XQ/what-needs-to-be-done-to-make-event-bridge-invoke-a-fargate-task-when-file-added-to-s3

profile picture
專家
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南