batch:TagResource

Tagging

batch:TagResource is a Tagging access-level action in the batch service. Grants permission to tag an AWS Batch resource in your account

Resource types

ARNs that batch:TagResource can be scoped to in an IAM policy.

arn:${Partition}:batch:${Region}:${Account}:compute-environment/${ComputeEnvironmentName}
compute-environment
arn:${Partition}:batch:${Region}:${Account}:consumable-resource/${ConsumableResourceName}
consumable-resource
arn:${Partition}:batch:${Region}:${Account}:job/${JobId}
job
arn:${Partition}:batch:${Region}:${Account}:job-definition/${JobDefinitionName}:${Revision}
job-definition-revision
arn:${Partition}:batch:${Region}:${Account}:job-queue/${JobQueueName}
job-queue
arn:${Partition}:batch:${Region}:${Account}:job-queue/${JobQueueName}/quota-share/${QuotaShareName}
quota-share
arn:${Partition}:batch:${Region}:${Account}:scheduling-policy/${SchedulingPolicyName}
scheduling-policy
arn:${Partition}:batch:${Region}:${Account}:service-environment/${ServiceEnvironmentName}
service-environment
arn:${Partition}:batch:${Region}:${Account}:service-job/${JobId}
service-job

Condition keys

Keys you can use in the Condition block of a policy that grants batch:TagResource.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

A minimal policy that allows batch:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowBatchTagResource",
      "Effect": "Allow",
      "Action": "batch:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in batch

View all batch actions →