states:TagResource

Tagging

states:TagResource is a Tagging access-level action in the states service. Grants permission to tag an AWS Step Functions resource

Resource types

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

arn:${Partition}:states:${Region}:${Account}:activity:${ActivityName}
activity
arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}
statemachine

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters access by a tag key and value pair of a resource

Example IAM policy

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

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

Related actions in states

View all states actions →