cloudfront:ListTagsForResource

Read

cloudfront:ListTagsForResource is a Read access-level action in the cloudfront service. Grants permission to list tags for a CloudFront resource

Resource types

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

arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}
anycast-ip-list
arn:${Partition}:cloudfront::${Account}:connection-function/${Id}
connection-function
arn:${Partition}:cloudfront::${Account}:connection-group/${Id}
connection-group
arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}
distribution
arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}
distribution-tenant
arn:${Partition}:cloudfront::${Account}:function/${Name}
function
arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}
key-value-store
arn:${Partition}:cloudfront::${Account}:trust-store/${Id}
trust-store
arn:${Partition}:cloudfront::${Account}:vpcorigin/${Id}
vpcorigin

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in cloudfront

View all cloudfront actions →