aws.ecs.list_tasks
Example SQL Queries
SELECT * FROMaws.ecs.list_tasks;Description
Returns a list of tasks. You can filter the results by cluster, task definition family, container instance, launch type, what IAM principal started the task, or by the desired status of the task.
Recently stopped tasks might appear in the returned results.
Table Definition
| Column Name | Column Data Type |
|---|---|
| cluster Input Column The short name or full Amazon Resource Name (ARN) of the cluster to use when filtering the ListTasks results. If you do not specify a cluster, the default cluster is assumed. | VARCHAR |
| container_instance Input Column The container instance ID or full ARN of the container instance to use when filtering the ListTasks results. Specifying a containerInstance limits the results to tasks that belong to that container instance. | VARCHAR |
| desired_status Input Column The task desired status to use when filtering the ListTasks results. Specifying a desiredStatus of STOPPED limits the results to tasks that Amazon ECS has set the desired status to STOPPED. This can be useful for debugging tasks that aren't starting properly or have died or finished. The default status filter is RUNNING, which shows tasks that Amazon ECS has set the desired status to RUNNING. Although you can filter results based on a desired status of PENDING, this doesn't return any results. Amazon ECS never sets the desired status of a task to that value (only a task's lastStatus may have a value of PENDING). | VARCHAR |
| family Input Column The name of the task definition family to use when filtering the ListTasks results. Specifying a family limits the results to tasks that belong to that family. | VARCHAR |
| launch_type Input Column The launch type to use when filtering the ListTasks results. | VARCHAR |
| service_name Input Column The name of the service to use when filtering the ListTasks results. Specifying a serviceName limits the results to tasks that belong to that service. | VARCHAR |
| started_by Input Column The startedBy value to filter the task results with. Specifying a startedBy value limits the results to tasks that were started with that value. When you specify startedBy as the filter, it must be the only filter that you use. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| task_arns | VARCHAR |