kafka:TagResource

Tagging

kafka:TagResource is a Tagging access-level action in the kafka service. Grants permission to tag an MSK resource

Resource types

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

arn:${Partition}:kafka:${Region}:${Account}:cluster/${ClusterName}/${Uuid}
cluster
arn:${Partition}:kafka:${Region}:${VpcOwnerAccount}:vpc-connection/${ClusterOwnerAccount}/${ClusterName}/${Uuid}
vpc-connection

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in kafka

View all kafka actions →