codedeploy:ListTagsForResource

List

codedeploy:ListTagsForResource is a List access-level action in the codedeploy service. Grants permission to return a list of tags for the resource identified by a specified ARN. Tags are used to organize and categorize your CodeDeploy resources

Resource types

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

arn:${Partition}:codedeploy:${Region}:${Account}:application:${ApplicationName}
application
arn:${Partition}:codedeploy:${Region}:${Account}:deploymentgroup:${ApplicationName}/${DeploymentGroupName}
deploymentgroup

Condition keys

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

aws:ResourceTag/${TagKey} String

Filters actions based on tag key-value pairs attached to the resource

Example IAM policy

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

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

Related actions in codedeploy

View all codedeploy actions →