rolesanywhere:TagResource

Tagging

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

Resource types

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

arn:${Partition}:rolesanywhere:${Region}:${Account}:crl/${CrlId}
crl
arn:${Partition}:rolesanywhere:${Region}:${Account}:profile/${ProfileId}
profile
arn:${Partition}:rolesanywhere:${Region}:${Account}:subject/${SubjectId}
subject
arn:${Partition}:rolesanywhere:${Region}:${Account}:trust-anchor/${TrustAnchorId}
trust-anchor

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

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

Related actions in rolesanywhere

View all rolesanywhere actions →