ssm:ListTagsForResource

List

ssm:ListTagsForResource is a List access-level action in the ssm service. Grants permission to view a list of resource tags for a specified resource

Resource types

ARNs that ssm:ListTagsForResource can be scoped to in an IAM policy.

arn:${Partition}:ssm:${Region}:${Account}:association/${AssociationId}
association
arn:${Partition}:ssm:${Region}:${Account}:automation-execution/${AutomationExecutionId}
automation-execution
arn:${Partition}:ssm:${Region}:${Account}:cloud-connector/${CloudConnectorId}
cloud-connector
arn:${Partition}:ssm:${Region}:${Account}:document/${DocumentName}
document
arn:${Partition}:ssm:${Region}:${Account}:maintenancewindow/${ResourceId}
maintenancewindow
arn:${Partition}:ssm:${Region}:${Account}:managed-instance/${InstanceId}
managed-instance
arn:${Partition}:ssm:${Region}:${Account}:opsitem/${ResourceId}
opsitem
arn:${Partition}:ssm:${Region}:${Account}:opsmetadata/${ResourceId}
opsmetadata
arn:${Partition}:ssm:${Region}:${Account}:parameter/${ParameterNameWithoutLeadingSlash}
parameter
arn:${Partition}:ssm:${Region}:${Account}:patchbaseline/${PatchBaselineIdResourceId}
patchbaseline

Condition keys

Keys you can use in the Condition block of a policy that grants ssm:ListTagsForResource.

aws:ResourceTag/${TagKey} String

Filters access by based on a tag key-value pair assigned to the AWS resource

ssm:DocumentCategories ArrayOfString

Filters access by verifying that a user has permission to access a document belonging to a specific category enum

ssm:DocumentType String

Filters access by verifying that a user has permission to access a document belonging to a specific document type. Only available in "aws", "aws-cn", and "aws-us-gov" partitions

ssm:resourceTag/${TagKey} String

Filters access by a tag key-value pair assigned to the Systems Manager resource

ssm:resourceTag/tag-key String

Filters access by based on a tag key-value pair assigned to the Systems Manager resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSsmListTagsForResource",
      "Effect": "Allow",
      "Action": "ssm:ListTagsForResource",
      "Resource": "*"
    }
  ]
}

Related actions in ssm

View all ssm actions →