Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#AWS

Custom Metric Scaling for ECS Fargate via SQS Queue Depth

Customize the variables below to instantly engineer your prompt.

Required Variables

ecs-fargate-sqs-backlog-per-task-scaling.txt
Act as an Event-Driven Architecture Expert. Develop a highly responsive Step-Scaling policy for a background ECS Fargate worker service named [SERVICE_NAME]. The service must scale not on CPU, but strictly based on the real-time 'BacklogPerTask' metric derived from an Amazon SQS queue named [QUEUE_NAME]. Detail the CloudWatch Metric Math expression required to continuously divide the `ApproximateNumberOfMessagesVisible` by the `RunningTaskCount`. Configure the exact step adjustments (e.g., add 5 tasks if backlog > 100, add 10 tasks if backlog > 500) required to maintain the [ACCEPTABLE_BACKLOG_PER_TASK] threshold, strictly capped by an absolute [MAX_CAPACITY] to prevent runaway cloud billing. Output the Terraform configuration for the `aws_appautoscaling_policy` resource.

Example Text Output

"The output generates a custom CloudWatch metric and scaling policy that ensures worker capacity grows dynamically with the size of the processing queue."

More Cloud & DevOps Prompts

View all →

Frequently Asked Questions

What is the "Custom Metric Scaling for ECS Fargate via SQS Queue Depth" prompt used for?

The output generates a custom CloudWatch metric and scaling policy that ensures worker capacity grows dynamically with the size of the processing queue.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.