Skip to content

clear gen1 Classic-LB ECS monitoring on deploy#3805

Open
ntner wants to merge 1 commit into
masterfrom
gen1-clb-monitoring-clear
Open

clear gen1 Classic-LB ECS monitoring on deploy#3805
ntner wants to merge 1 commit into
masterfrom
gen1-clb-monitoring-clear

Conversation

@ntner

@ntner ntner commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

What is the feature/update/fix?

Fix: clear the unsupported ECS service monitoring configuration on gen1 Classic Load Balancer deploys

AWS's high-resolution ECS metrics introduced a service-level monitoring configuration on AWS::ECS::Service. ECS does not support that configuration on a service attached to a Classic Load Balancer (one defined by loadBalancerName, without target groups). When such a service carries a monitoring configuration, the ECS UpdateService call CloudFormation issues during a deploy is rejected, and the app stack update rolls back.

On a generation 1 (docker-compose.yml) deploy, Convox now looks up the app's ECS services, and for any that are attached to a Classic Load Balancer, clears the monitoring configuration (an empty metric set, which ECS accepts) immediately before the CloudFormation stack update. This lets Classic-LB-backed services deploy cleanly.

The change is deliberately narrow. It runs only on the generation 1 deploy path, and only against services that are actually attached to a Classic Load Balancer. Services behind an Application or Network Load Balancer (target groups) are never touched, so any valid monitoring configuration on them is preserved. The step is best-effort: if the lookup or the clear fails, it is logged and the deploy proceeds exactly as before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant