Best practices for updating capacity providers for Amazon ECS Managed Instances
For the highest level of safety and rollback support, we recommend treating capacity providers as immutable resources. When you need to update a capacity provider configuration, follow this recommended workflow:
-
Create a new capacity provider with your updated configuration instead of modifying the existing one.
-
Update each service to use the new capacity provider and allow the deployments to complete.
-
Delete the old capacity provider after confirming the new configuration works as expected.
This approach provides several benefits:
-
Controlled rollout - You can update services one at a time and monitor the impact.
-
Easy rollback - If issues occur, you can quickly revert services to use the previous capacity provider.
-
Reduced blast radius - Problems with the new configuration don't immediately affect all workloads.
Note
If you're using CloudFormation, consider keeping the old capacity provider until a later deployment to preserve the ability to roll back your stack changes.
While you can update capacity providers in place, this approach creates a larger uncontrolled blast radius. In-place updates apply new settings to all new capacity provisioned going forward, but don't trigger service deployments. This means you might not discover configuration issues until much later when your services need to scale.