ecs:UntagResource

Tagging

ecs:UntagResource is a Tagging access-level action in the ecs service. Grants permission to untag the specified resource

Resource types

ARNs that ecs:UntagResource can be scoped to in an IAM policy.

arn:${Partition}:ecs:${Region}:${Account}:capacity-provider/${CapacityProviderName}
capacity-provider
arn:${Partition}:ecs:${Region}:${Account}:cluster/${ClusterName}
cluster
arn:${Partition}:ecs:${Region}:${Account}:container-instance/${ClusterName}/${ContainerInstanceId}
container-instance
arn:${Partition}:ecs:${Region}:${Account}:daemon/${ClusterName}/${DaemonName}
daemon
arn:${Partition}:ecs:${Region}:${Account}:daemon-task-definition/${DaemonTaskDefinitionFamilyName}:${DaemonTaskDefinitionRevisionNumber}
daemon-task-definition
arn:${Partition}:ecs:${Region}:${Account}:service/${ClusterName}/${ServiceName}
service
arn:${Partition}:ecs:${Region}:${Account}:task/${ClusterName}/${TaskId}
task
arn:${Partition}:ecs:${Region}:${Account}:task-definition/${TaskDefinitionFamilyName}:${TaskDefinitionRevisionNumber}
task-definition
arn:${Partition}:ecs:${Region}:${Account}:task-set/${ClusterName}/${ServiceName}/${TaskSetId}
task-set

Condition keys

Keys you can use in the Condition block of a policy that grants ecs:UntagResource.

aws:ResourceTag/${TagKey} String

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

ecs:ResourceTag/${TagKey} String

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

ecs:cluster ARN

Filters access by the ARN of an Amazon ECS cluster

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowEcsUntagResource",
      "Effect": "Allow",
      "Action": "ecs:UntagResource",
      "Resource": "*"
    }
  ]
}

Related actions in ecs

View all ecs actions →