Your container runs. Everything around it shouldn’t be your problem.
The promise with containers was simple: if it runs on your local machine, it will run in production. And this The post Your container runs. Everything around it shouldn’t be your problem. appeared first on The New Stack .
Containers have long promised simplicity: what runs locally should also run in production. Yet, the surrounding setup often complicates matters. Setting up load balancers, scaling policies, networking components, and security configurations can quickly overshadow the container itself. This is where Amazon ECS Express Mode steps in, offering a streamlined approach to container orchestration on AWS.
Express Mode simplifies the deployment process by allowing you to provide a container image and two IAM roles. In return, you receive an HTTPS service running on Fargate with a load balancer, a TLS certificate, autoscaling, and canary deployments—all without the hassle of managing additional resources. This approach ensures you get a production-ready service without having to delve into the complexities of the underlying infrastructure.
Key features of Express Mode include:
- **Simplicity and Extensibility**: You give a container image and two IAM roles, and you get a fully functional service. The service shares an Application Load Balancer with up to 25 other services within a VPC, eliminating the need for individual load balancers.
- **Automatic Canary Deployments**: Each deployment starts as a canary release, routing 5% of traffic to the new revision for testing. If error rates exceed 1%, the system automatically rolls back to the previous version, ensuring stability.
- **Automatic Scaling**: Services are set to auto-scale based on CPU utilization, targeting 60% initially and up to 20 tasks by default. Custom scaling can be configured for memory or request count, providing flexibility for various workloads.
- **Infrastructure as Code (IaC) Ready**: Express Mode integrates seamlessly with CloudFormation, CDK, Terraform, and GitHub Actions, making it easy to manage and deploy your services using your preferred IaC tools.
- **Complete Ownership**: All resources created by Express Mode, such as the cluster, load balancer, target groups, and log groups, reside in your AWS account. This gives you full control and visibility, allowing you to audit and modify resources as needed.
- **Extensibility**: While Express Mode simplifies the setup, it doesn't limit you to basic container configurations. You can provide a standard ECS task definition, enabling you to add sidecar containers, custom images, and secrets from AWS Secrets Manager. This extensibility allows your applications to evolve beyond simple container setups.
Express Mode is designed to be an interface into Amazon ECS, not a separate, isolated system. This means all resources created by Express Mode are standard AWS resources, fully addressable through their ARNs. You can directly modify these resources using AWS APIs, the console, CLI, or SDKs. This flexibility ensures you maintain complete control over your infrastructure, even as you leverage the simplicity of Express Mode.
In summary, Amazon ECS Express Mode offers a practical solution for teams looking to adopt containers in production without getting bogged down by the complexities of underlying infrastructure. By providing a straightforward interface to a powerful orchestration engine, Express Mode allows teams to focus on building and deploying their applications, rather than getting lost in the setup details.
Written by urgent.news from The New Stack's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.