ecs:StartTask is a Write access-level action in the ecs service. Grants permission to start a new task from the specified task definition on the specified container instance or instances
ARNs that ecs:StartTask can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants ecs:StartTask.
Filters access by the tag key-value pairs attached to the resource
Filters access by the tag key-value pairs attached to the resource
To use ecs:StartTask you may also need to grant:
A minimal policy that allows ecs:StartTask. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowEcsStartTask",
"Effect": "Allow",
"Action": "ecs:StartTask",
"Resource": "*"
}
]
}