Required resources for Amazon ECS blue/green deployments - Amazon Elastic Container Service

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.