imagebuilder:ListTagsForResource

Read

imagebuilder:ListTagsForResource is a Read access-level action in the imagebuilder service. Grants permission to list tags for an Image Builder resource

Resource types

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

arn:${Partition}:imagebuilder:${Region}:${Account}:component/${ComponentName}/${ComponentVersion}/${ComponentBuildVersion}
component
arn:${Partition}:imagebuilder:${Region}:${Account}:container-recipe/${ContainerRecipeName}/${ContainerRecipeVersion}
containerRecipe
arn:${Partition}:imagebuilder:${Region}:${Account}:distribution-configuration/${DistributionConfigurationName}
distributionConfiguration
arn:${Partition}:imagebuilder:${Region}:${Account}:image/${ImageName}/${ImageVersion}/${ImageBuildVersion}
image
arn:${Partition}:imagebuilder:${Region}:${Account}:image-pipeline/${ImagePipelineName}
imagePipeline
arn:${Partition}:imagebuilder:${Region}:${Account}:image-recipe/${ImageRecipeName}/${ImageRecipeVersion}
imageRecipe
arn:${Partition}:imagebuilder:${Region}:${Account}:infrastructure-configuration/${ResourceId}
infrastructureConfiguration
arn:${Partition}:imagebuilder:${Region}:${Account}:lifecycle-policy/${LifecyclePolicyName}
lifecyclePolicy
arn:${Partition}:imagebuilder:${Region}:${Account}:workflow/${WorkflowType}/${WorkflowName}/${WorkflowVersion}/${WorkflowBuildVersion}
workflow

Condition keys

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

aws:ResourceTag/${TagKey} String

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

Example IAM policy

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

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

Related actions in imagebuilder

View all imagebuilder actions →