Posted On: Jan 11, 2024
HAQM Elastic Container Service (HAQM ECS) and AWS Fargate now integrate with HAQM Elastic Block Store (EBS), allowing you to easily provision and attach EBS volumes to HAQM ECS tasks running on both AWS Fargate and HAQM Elastic Compute Cloud (EC2) using HAQM ECS APIs. This capability makes it easier for you to deploy storage and data intensive applications such as ETL jobs, media transcoding, and ML inference workloads using serverless containers.
To use EBS volumes with your HAQM ECS tasks, simply configure the path you want the EBS volume to be mounted on in your task definition, and pass desired EBS volume attributes (e.g. size, type, IOPS, throughput), HAQM Key Management Service key, and snapshot-id (if you want the volume to be initialized from an existing EBS snapshot) in the RunTask, CreateService, or UpdateService API request. When you configure EBS volumes for your HAQM ECS tasks or services, HAQM ECS provisions an equal number of EBS volumes as the number of tasks and mounts one EBS volume to each task. By default, HAQM ECS automatically deletes the attached EBS volume when a task exits. This integration gives you access to all EBS features including configurable volume types and performance, snapshots, DataLifecycleManager, and encryption for your applications deployed with HAQM ECS.
HAQM ECS support for EBS volumes is available in the following AWS regions. To get started, view our documentation and blog.