You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(client-batch): Starting in JAN 2026, AWS Batch will change the default AMI for new Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023. We recommend migrating AWS Batch Amazon ECS compute environments to Amazon Linux 2023 to maintain optimal performance and security.
* cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html">Launching an Amazon ECS container
54
51
* instance</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
55
52
* <note>
56
-
* <p>To create a compute environment that uses EKS resources, the caller must have
57
-
* permissions to call <code>eks:DescribeCluster</code>.</p>
58
-
* </note>
59
-
* <note>
60
53
* <p>Batch doesn't automatically upgrade the AMIs in a compute environment after it's
61
-
* created. For example, it also doesn't update the AMIs in your compute environment when a
62
-
* newer version of the Amazon ECS optimized AMI is available. You're responsible for the management
63
-
* of the guest operating system. This includes any updates and security patches. You're also
64
-
* responsible for any additional application software or utilities that you install on the
65
-
* compute resources. There are two ways to use a new AMI for your Batch jobs. The original
66
-
* method is to complete these steps:</p>
67
-
* <ol>
68
-
* <li>
69
-
* <p>Create a new compute environment with the new AMI.</p>
70
-
* </li>
71
-
* <li>
72
-
* <p>Add the compute environment to an existing job queue.</p>
73
-
* </li>
74
-
* <li>
75
-
* <p>Remove the earlier compute environment from your job queue.</p>
76
-
* </li>
77
-
* <li>
78
-
* <p>Delete the earlier compute environment.</p>
79
-
* </li>
80
-
* </ol>
81
-
* <p>In April 2022, Batch added enhanced support for updating compute environments. For
82
-
* more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating compute environments</a>.
83
-
* To use the enhanced updating of compute environments to update AMIs, follow these
84
-
* rules:</p>
85
-
* <ul>
86
-
* <li>
87
-
* <p>Either don't set the service role (<code>serviceRole</code>) parameter or set it to
88
-
* the <b>AWSBatchServiceRole</b> service-linked role.</p>
89
-
* </li>
90
-
* <li>
91
-
* <p>Set the allocation strategy (<code>allocationStrategy</code>) parameter to
92
-
* <code>BEST_FIT_PROGRESSIVE</code>, <code>SPOT_CAPACITY_OPTIMIZED</code>, or
93
-
* <code>SPOT_PRICE_CAPACITY_OPTIMIZED</code>.</p>
94
-
* </li>
95
-
* <li>
96
-
* <p>Set the update to latest image version (<code>updateToLatestImageVersion</code>)
97
-
* parameter to <code>true</code>. The <code>updateToLatestImageVersion</code> parameter
98
-
* is used when you update a compute environment. This parameter is ignored when you create
99
-
* a compute environment.</p>
100
-
* </li>
101
-
* <li>
102
-
* <p>Don't specify an AMI ID in <code>imageId</code>, <code>imageIdOverride</code> (in
* (<code>launchTemplate</code>). In that case, Batch selects the latest Amazon ECS
107
-
* optimized AMI that's supported by Batch at the time the infrastructure update is
108
-
* initiated. Alternatively, you can specify the AMI ID in the <code>imageId</code> or
109
-
* <code>imageIdOverride</code> parameters, or the launch template identified by the
110
-
* <code>LaunchTemplate</code> properties. Changing any of these properties starts an
111
-
* infrastructure update. If the AMI ID is specified in the launch template, it can't be
112
-
* replaced by specifying an AMI ID in either the <code>imageId</code> or
113
-
* <code>imageIdOverride</code> parameters. It can only be replaced by specifying a
114
-
* different launch template, or if the launch template version is set to
115
-
* <code>$Default</code> or <code>$Latest</code>, by setting either a new default version
116
-
* for the launch template (if <code>$Default</code>) or by adding a new version to the
117
-
* launch template (if <code>$Latest</code>).</p>
118
-
* </li>
119
-
* </ul>
120
-
* <p>If these rules are followed, any update that starts an infrastructure update causes the
121
-
* AMI ID to be re-selected. If the <code>version</code> setting in the launch template
122
-
* (<code>launchTemplate</code>) is set to <code>$Latest</code> or <code>$Default</code>, the
123
-
* latest or default version of the launch template is evaluated up at the time of the
124
-
* infrastructure update, even if the <code>launchTemplate</code> wasn't updated.</p>
54
+
* created. For more information on how to update a compute environment's AMI, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/updating-compute-environments.html">Updating compute environments</a> in the <i>Batch User Guide</i>.</p>
125
55
* </note>
126
56
* @example
127
57
* Use a bare-bones client and the command you need to make an API call.
* specified in an update, but neither an <code>imageId</code> nor a <code>imageIdOverride</code>
368
368
* parameter is specified, then the latest Amazon ECS optimized AMI for that image type that's
369
369
* supported by Batch is used.</p>
370
+
* <important>
371
+
* <p>Amazon Web Services will end support for Amazon ECS optimized AL2-optimized and AL2-accelerated AMIs. Starting in January 2026, Batch will change
372
+
* the default AMI for new Amazon ECS compute environments from Amazon Linux 2 to Amazon Linux 2023.
373
+
* We recommend migrating Batch Amazon ECS compute environments to Amazon Linux 2023 to maintain
374
+
* optimal performance and security. For more information on upgrading from AL2 to AL2023, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/ecs-migration-2023.html">How to migrate
375
+
* from ECS AL2 to ECS AL2023</a> in the <i>Batch User Guide</i>.</p>
* using Batch-provided Amazon EKS optimized Amazon Linux 2 AMIs on your Amazon EKS compute
424
425
* environments beyond the 11/26/25 end-of-support date, these compute environments will no
425
426
* longer receive any new software updates, security patches, or bug fixes from
426
-
* Amazon Web Services. For more information on upgrading from AL2 to AL2023, see <a href="">How to upgrade from EKS AL2 to EKS AL2023</a> in the <i>Batch User Guide</i>.</p>
427
+
* Amazon Web Services. For more information on upgrading from AL2 to AL2023, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/eks-migration-2023.html">How to upgrade from EKS AL2 to EKS AL2023</a> in the <i>Batch User Guide</i>.</p>
* <p> If you choose <code>SPOT</code>, you must also specify an Amazon EC2 Spot Fleet role with the
693
694
* <code>spotIamFleetRole</code> parameter. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/spot_fleet_IAM_role.html">Amazon EC2 spot fleet role</a> in the
694
695
* <i>Batch User Guide</i>.</p>
696
+
* <note>
697
+
* <p>Multi-node parallel jobs aren't supported on Spot Instances.</p>
* <p>The IPC resource namespace to use for the containers in the task.</p>
5719
+
* <p>The IPC resource namespace to use for the containers in the task. The valid values are
5720
+
* <code>host</code>, <code>task</code>, or <code>none</code>. For more information see <code>ipcMode</code> in <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_EcsTaskProperties.html">EcsTaskProperties</a>.</p>
* <p>The process namespace to use for the containers in the task.</p>
5737
+
* <p>The process namespace to use for the containers in the task. The valid values are
5738
+
* <code>host</code>, or <code>task</code>. For more information see <code>pidMode</code> in <a href="https://docs.aws.amazon.com/batch/latest/APIReference/API_EcsTaskProperties.html">EcsTaskProperties</a>.</p>
0 commit comments