Required resources for Amazon ECS canary deployments - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Required resources for Amazon ECS canary deployments

To use a canary deployment with managed traffic shifting, your service must use one of the following features:

  • Elastic Load Balancing

  • Service Connect

The following list provides a high-level overview of what you need to configure for Amazon ECS canary deployments:

Best practices

Follow these best practices for successful Amazon ECS lcanary deployments:

  • Ensure your application can handle both service revisions running simultaneously.

  • Plan for sufficient cluster capacity to handle both service revisions during deployment.

  • Test your rollback procedures before implementing them in production.

  • Configure appropriate health checks that accurately reflect your application's health.

  • Set a bake time that allows sufficient testing of the green deployment.

  • Implement CloudWatch alarms to automatically detect issues and trigger rollbacks.

  • Use lifecycle hooks to perform automated testing at each deployment stage.

  • Start with small canary percentages (5-10%) to minimize impact if issues occur.

  • Set appropriate evaluation periods that allow sufficient time for meaningful performance data collection.

  • Implement comprehensive monitoring with CloudWatch alarms for automated rollback triggers.

  • Configure health checks that accurately reflect your application's readiness and functionality.

  • Monitor both technical metrics (response time, error rate) and business metrics during evaluation.

  • Ensure your application can handle traffic splitting without session or state issues.

  • Plan rollback procedures and test them regularly to ensure they work when needed.

  • Schedule canary deployments during business hours when teams can monitor and respond.

  • Validate changes thoroughly in staging environments before canary deployment.

  • Document clear procedures for manual intervention and rollback decisions.