Required resources for Amazon ECS linear 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 linear deployments

To use a linear 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 linear deployments:

Best practices

Follow these best practices for successful Amazon ECS linear 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 new service revision.

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

  • Choose step percentages and bake times that balance deployment speed with validation needs.

  • Use smaller step percentages (5-10%) for critical applications to minimize risk exposure.

  • Set longer step bake times for applications that need time to warm up or stabilize.

  • Implement CloudWatch alarms to automatically detect issues and trigger rollbacks at any traffic increment.

  • Monitor application metrics closely during each traffic shift to detect performance degradation early.

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

  • Test your rollback procedures at different traffic percentages before implementing them in production.