In some scenarios, you may have specific specification requirements, such as those for GPUs, enhanced network capabilities, high clock speeds, and local disks. To meet these requirements, you can create an elastic container instance by specifying an Elastic Compute Service (ECS) instance type.
Supported ECS instance families
When you specify an ECS instance type to create an elastic container instance, you are charged for the computing resources that are consumed by the elastic container instance based on the rate of the ECS instance type.
The following ECS instance families are supported:
General-purpose instance families: g7, g6e, g6a, g6, g5, sn2ne, and sn2
Compute-optimized instance families: c7, c6e, c6a, c6, c5, sn1ne, and sn1
Memory-optimized instance families: r7, r6e, r6a, r6, r5, se1ne, and se1
Compute-intensive instance family: ic5
Compute-optimized instance families with high clock speeds: hfc7, hfc6, and hfc5
General-purpose instance families with high clock speeds: hfg7, hfg6, and hfg5
Memory-optimized instance family with high clock speed: hfr7
GPU-accelerated compute-optimized instance families: gn7e, gn7i, gn7, gn6i, gn6e, gn6v, gn5i, and gn5
vGPU-accelerated instance families: vgn7i-vws
Big data instance family with enhanced network performance: d1ne
Instance families with local SSDs: i2 and i2g
Burstable instance families: t6 and t5
Shared instance families: xn4, n4, mn4, e4, n1, n2, and e3
If you use burstable instance families, take note of the following items:
Burstable instances use CPU credits to maintain computing performance and are suitable for scenarios in which CPU utilization is typically low but experiences occasional bursts. For more information, see Overview.
You cannot modify ulimit.
For more information, see:
You can specify ECS instance types only by calling API operations.
When you call the CreateContainerGroup operation to create an elastic container instance, you can use the InstanceType parameter to specify one or more ECS instance types. The following table describes the parameter. For more information, see CreateContainerGroup.
The ECS instance type. You can specify up to five ECS instance types at a time. Separate multiple instance types with commas (,). Example: ecs.c5.xlarge,ecs.g5.xlarge.