Required resources for Amazon ECS blue/green 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 blue/green deployments

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

  • Elastic Load Balancing

  • Service Connect

Services that don't use Service Discovery, Service Connect, VPC Lattice or Elastic Load Balancing can also use blue/green deployments, but don't get any of the managed traffic shifting benefits.

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

Best practices

Follow these best practices for successful Amazon ECS blue/green deployments:

  • 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.

  • Ensure your application can handle both blue and green environments running simultaneously.

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

  • Test your rollback procedures before implementing them in production.