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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ