Our great sponsors
-
containers-roadmap
This is the public roadmap for AWS container services (ECS, ECR, Fargate, and EKS).
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
copilot-cli
The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
-
phoenix_container_example
Production-quality example for Elixir/Phoenix building, testing, and running in containers
In November we announced (https://aws.amazon.com/about-aws/whats-new/2020/11/amazon-ecs-cluster-auto-scaling-now-offers-more-responsive-scaling/) more responsive scaling functionality to ECS cluster auto scaling. This does address your question around scaling with multiple instance types as well as spanning across multiple availability zones. If there are cases where you are still looking for improvement, please submit an issue in our public roadmap (https://github.com/aws/containers-roadmap/projects/1). Regarding CloudFormation and CDK support, we are working on reaching parity and that issue can be tracked here (https://github.com/aws/containers-roadmap/issues/631#issuecomment-702580141). Please do add your use case and any feature gaps in that issue.
It looks like they have added something for this in the latest ECS agent: https://github.com/aws/amazon-ecs-agent/releases/tag/v1.50.0
BTW, all of this can be configured and managed for you using AWS Copilot: https://aws.github.io/copilot-cli/
I am heavily using multi-stage builds, e.g.: https://github.com/cogini/phoenix_container_example/blob/master/deploy/Dockerfile.alpine