RuntimePlatform
An object that represents the compute environment architecture for AWS Batch jobs on Fargate.
Contents
- cpuArchitecture
-
The vCPU architecture. The default value is
X86_64
. Valid values areX86_64
andARM64
.Note
This parameter must be set to
X86_64
for Windows containers.Note
Fargate Spot is not supported for
ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATE
andFARGATE_SPOT
compute environments to the same job queue.Type: String
Required: No
- operatingSystemFamily
-
The operating system for the compute environment. Valid values are:
LINUX
(default),WINDOWS_SERVER_2019_CORE
,WINDOWS_SERVER_2019_FULL
,WINDOWS_SERVER_2022_CORE
, andWINDOWS_SERVER_2022_FULL
.Note
The following parameters can’t be set for Windows containers:
linuxParameters
,privileged
,user
,ulimits
,readonlyRootFilesystem
, andefsVolumeConfiguration
.Note
The AWS Batch Scheduler checks the compute environments that are attached to the job queue before registering a task definition with Fargate. In this scenario, the job queue is where the job is submitted. If the job requires a Windows container and the first compute environment is
LINUX
, the compute environment is skipped and the next compute environment is checked until a Windows-based compute environment is found.Note
Fargate Spot is not supported for
ARM64
and Windows-based containers on Fargate. A job queue will be blocked if a FargateARM64
or Windows job is submitted to a job queue with only Fargate Spot compute environments. However, you can attach bothFARGATE
andFARGATE_SPOT
compute environments to the same job queue.Type: String
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: