AWS Security ChangesHomeSearch

AWS batch: AWS Batch: authorize EC2 tags via computeResources.tags IAM condition key

Service: batch · 2026-10-17 · Documentation medium

File: batch/latest/userguide/launch-templates.md · Type: iam

Summary

Adds a note clarifying that EC2 tags applied to compute resources must be set in the compute environment's `computeResources.tags` (not only in the launch template) so that the `batch:ComputeResourcesTag/<tag-key>` IAM condition key can authorize them, and updates the ignored-parameter list to name `computeResources.tags`.

Security assessment

The added note documents an IAM condition key (`batch:ComputeResourcesTag/<tag-key>`) used to authorize tag values on compute resources, warning that tags set only in a launch template bypass that authorization check. This is access-control guidance that helps prevent users from setting tags their policy does not permit, but it documents existing behavior rather than fixing a specific vulnerability.

Evidence

+To authorize the Amazon EC2 tags applied to your compute resources with IAM policies, set those tags in the compute environment's `computeResources.tags` instead of only in the launch template. When AWS Batch processes a `CreateComputeEnvironment` or `UpdateComputeEnvironment` request, it uses the `batch:ComputeResourcesTag/`tag-key`` condition key to authorize the tags in `computeResources.tags`. This condition key doesn't evaluate tags that are set only in the launch template. For more information, see [Control access to compute resource tags with condition keys](./compute-resources-tag-access-policy.html).

Diff

diff --git a/batch/latest/userguide/launch-templates.md b/batch/latest/userguide/launch-templates.md
index 0921d49..58171c4 100644
--- a//batch/latest/userguide/launch-templates.md
+++ b//batch/latest/userguide/launch-templates.md
@@ -61 +61 @@ Suppose that any of these parameters (except the Amazon EC2 tags) are specified
-  * Amazon EC2 tags
+  * Amazon EC2 tags (`computeResources.tags`)
@@ -80,0 +81,4 @@ The following launch template parameters are **ignored** by AWS Batch:
+###### Note
+
+To authorize the Amazon EC2 tags applied to your compute resources with IAM policies, set those tags in the compute environment's `computeResources.tags` instead of only in the launch template. When AWS Batch processes a `CreateComputeEnvironment` or `UpdateComputeEnvironment` request, it uses the `batch:ComputeResourcesTag/`tag-key`` condition key to authorize the tags in `computeResources.tags`. This condition key doesn't evaluate tags that are set only in the launch template. For more information, see [Control access to compute resource tags with condition keys](./compute-resources-tag-access-policy.html).
+