AWS Security ChangesHomeSearch

AWS batch: AWS Batch: troubleshoot denied compute resource tag authorization

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

File: batch/latest/userguide/security_iam_troubleshoot.md · Type: iam

Summary

Adds a new troubleshooting section (and TOC entry) explaining the AccessDenied error when `computeResources.tags` values are not allowed by the `batch:ComputeResourcesTag/<tag-key>` condition key, with an example error and remediation steps.

Security assessment

The new section documents how IAM policies restrict compute resource tags via the `batch:ComputeResourcesTag/<tag-key>` condition key and how to resolve authorization failures. It is security-relevant IAM/authorization troubleshooting guidance, not a fix for a specific vulnerability.

Evidence

+If you create or update a compute environment and specify `computeResources.tags`, AWS Batch can deny the request if an IAM policy restricts the `batch:ComputeResourcesTag/`tag-key`` condition key for the tag keys or values that you set. The following example error occurs when a user tries to create a compute environment with a `CostCenter` compute resource tag value that their policy doesn't allow.

Diff

diff --git a/batch/latest/userguide/security_iam_troubleshoot.md b/batch/latest/userguide/security_iam_troubleshoot.md
index 951d5bb..c85b73e 100644
--- a//batch/latest/userguide/security_iam_troubleshoot.md
+++ b//batch/latest/userguide/security_iam_troubleshoot.md
@@ -7 +7 @@
-I am not authorized to perform an action in AWS BatchI am not authorized to perform iam:PassRoleI want to allow people outside of my AWS account to access my AWS Batch resources
+I am not authorized to perform an action in AWS BatchI am not authorized to create or update a compute environment with compute resource tagsI am not authorized to perform iam:PassRoleI want to allow people outside of my AWS account to access my AWS Batch resources
@@ -16,0 +17,2 @@ Use the following information to help you diagnose and fix common issues that yo
+  * I am not authorized to create or update a compute environment with compute resource tags
+
@@ -34,0 +37,9 @@ In this case, Mateo asks his administrator to update his policies to allow him t
+## I am not authorized to create or update a compute environment with compute resource tags
+
+If you create or update a compute environment and specify `computeResources.tags`, AWS Batch can deny the request if an IAM policy restricts the `batch:ComputeResourcesTag/`tag-key`` condition key for the tag keys or values that you set. The following example error occurs when a user tries to create a compute environment with a `CostCenter` compute resource tag value that their policy doesn't allow.
+    
+    
+    User: arn:aws:iam::123456789012:user/mateojackson is not authorized to perform: batch:CreateComputeEnvironment on resource: my-compute-environment because no identity-based policy allows the batch:CreateComputeEnvironment action
+
+To resolve this error, ask your administrator to update your IAM policy to allow the `batch:ComputeResourcesTag/`tag-key`` condition key for the tag keys and values that you need to set, or set `computeResources.tags` to only the tag keys and values that your policy allows. For more information about this condition key, see [Control access to compute resource tags with condition keys](./compute-resources-tag-access-policy.html).
+