instanceTypes
The instances types that can be launched. You can specify instance families to launch any instance type within those families (for example, c5
or p3
), or you can specify specific sizes within a family (such as c5.8xlarge
).
Batch can select the instance type for you if you choose one of the following:
optimal
to select instance types (from thec4
,m4
,r4
,c5
,m5
, andr5
instance families) that match the demand of your job queues.default_x86_64
to choose x86 based instance types (from them6i
,c6i
,r6i
, andc7i
instance families) that matches the resource demands of the job queue.default_arm64
to choose x86 based instance types (from them6g
,c6g
,r6g
, andc7g
instance families) that matches the resource demands of the job queue.
Starting on 11/01/2025 the behavior of optimal
is going to be changed to match default_x86_64
. During the change your instance families could be updated to a newer generation. You do not need to perform any actions for the upgrade to happen. For more information about change, see Optimal instance type configuration to receive automatic instance family updates.
Instance family availability varies by Amazon Web Services Region. For example, some Amazon Web Services Regions may not have any fourth generation instance families but have fifth and sixth generation instance families.
When using default_x86_64
or default_arm64
instance bundles, Batch selects instance families based on a balance of cost-effectiveness and performance. While newer generation instances often provide better price-performance, Batch may choose an earlier generation instance family if it provides the optimal combination of availability, cost, and performance for your workload. For example, in an Amazon Web Services Region where both c6i and c7i instances are available, Batch might select c6i instances if they offer better cost-effectiveness for your specific job requirements. For more information on Batch instance types and Amazon Web Services Region availability, see Instance type compute table in the Batch User Guide.
Batch periodically updates your instances in default bundles to newer, more cost-effective options. Updates happen automatically without requiring any action from you. Your workloads continue running during updates with no interruption
This parameter isn't applicable to jobs that are running on Fargate resources. Don't specify it.
When you create a compute environment, the instance types that you select for the compute environment must share the same architecture. For example, you can't mix x86 and ARM instances in the same compute environment.