ecs:ListGatewayRoutes

List

ecs:ListGatewayRoutes is a List access-level action in the ecs service. Grants permission to list the routes for an Amazon ECS gateway

Resource types

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

arn:${Partition}:ecs:${Region}:${Account}:cluster/${ClusterName}
cluster
arn:${Partition}:ecs:${Region}:${Account}:gateway/${GatewayName}/${GatewayId}
gateway
arn:${Partition}:ecs:${Region}:${Account}:gateway-route/${GatewayName}/${GatewayId}/${RouteId}
gateway-route
arn:${Partition}:ecs:${Region}:${Account}:service/${ClusterName}/${ServiceName}
service

Condition keys

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

aws: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

ecs:gateway ARN

Filters access by the ARN of an Amazon ECS gateway

ecs:service ARN

Filters access by the ARN of an Amazon ECS service

Example IAM policy

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

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

Related actions in ecs

View all ecs actions →