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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠