athena:TagResource

Tagging

athena:TagResource is a Tagging access-level action in the athena service. Grants permission to add a tag to a resource

Resource types

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

arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}
capacity-reservation
arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}
datacatalog
arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}
session
arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}
workgroup

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tag key-value pairs attached to the resource

Example IAM policy

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

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

Related actions in athena

View all athena actions →