AWS batch: AWS Batch: distinguish compute resource tags and capacity tags access control
Summary
Adds a note distinguishing EC2 tags set via `computeResources.tags` (controlled by `batch:ComputeResourcesTag/<tag-key>`) from Batch resource tags, and capacity tags set via `computeResources.capacityTags` (controlled by `batch:SetCapacityTags` with `aws:RequestTag/<tag-key>` and `aws:TagKeys`).
Security assessment
The note documents which IAM condition keys and actions (`batch:ComputeResourcesTag/<tag-key>`, `batch:SetCapacityTags`, `aws:RequestTag/<tag-key>`, `aws:TagKeys`) govern who may set compute resource and capacity tags, which is access-control guidance for tag-based authorization. No specific vulnerability or CVE is referenced.
Evidence
+The Amazon EC2 tags that you apply to a compute environment's underlying instances through `computeResources.tags` are separate from the AWS Batch resource tags described in this topic. To control which Amazon EC2 tags a principal can set in `computeResources.tags`, use the `batch:ComputeResourcesTag/`tag-key`` condition key in an IAM policy. 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/tag-resources.md b/batch/latest/userguide/tag-resources.md index 8c1288f..92e872e 100644 --- a//batch/latest/userguide/tag-resources.md +++ b//batch/latest/userguide/tag-resources.md @@ -29,0 +30,6 @@ AWS Batch quota shares | Yes | No | Yes +###### Note + +The Amazon EC2 tags that you apply to a compute environment's underlying instances through `computeResources.tags` are separate from the AWS Batch resource tags described in this topic. To control which Amazon EC2 tags a principal can set in `computeResources.tags`, use the `batch:ComputeResourcesTag/`tag-key`` condition key in an IAM policy. For more information, see [Control access to compute resource tags with condition keys](./compute-resources-tag-access-policy.html). + +Capacity tags are a separate set of tags that you apply to Amazon ECS Managed Instances compute resources through `computeResources.capacityTags`. To control which capacity tags a principal can set, grant or deny the `batch:SetCapacityTags` action and use the `aws:RequestTag/`tag-key`` and `aws:TagKeys` condition keys. For more information, see [Control access to capacity tags with batch:SetCapacityTags](./capacity-tags-access-policy.html). +