aws-ecs-services
Retrieves a list of AWS ECS services.
Syntax
aws-ecs-services [profile=PROFILE] [region=REGION] [cluster=CLUSTER]
Options
- profile=PROFILE
- Optional. The identifier of AWS connect profile
- region=REGION
- Optional. AWS region
- cluster=CLUSTER
- Optional. Comma separated ECS cluster names or ARNs. All clusters are queried if omitted.
Output Fields
| Field | Type | Name | Description |
|---|---|---|---|
| aws_profile | String | Connect profile | The identifier of AWS connect profile |
| region | String | Region | e.g. ap-northeast-2 |
| cluster_name | String | Cluster name | e.g. prod-cluster |
| service_name | String | Service name | e.g. web-api |
| service_arn | String | Service ARN | |
| status | String | Status | e.g. ACTIVE, DRAINING, INACTIVE |
| launch_type | String | Launch type | e.g. FARGATE, EC2, EXTERNAL |
| platform_version | String | Platform version | Fargate platform version, e.g. 1.4.0 |
| platform_family | String | Platform family | e.g. Linux, Windows |
| task_definition | String | Task definition | Task definition ARN |
| desired_count | Integer | Desired count | |
| running_count | Integer | Running count | Compare with desired_count to detect degraded services |
| pending_count | Integer | Pending count | |
| scheduling_strategy | String | Scheduling strategy | e.g. REPLICA, DAEMON |
| deployment_controller | String | Deployment controller | e.g. ECS, CODE_DEPLOY, EXTERNAL |
| role_arn | String | Role ARN | |
| created_at | Date | Created at | |
| created_by | String | Created by | |
| propagate_tags | String | Propagate tags | e.g. TASK_DEFINITION, SERVICE |
| enable_execute_command | Bool | ECS Exec enabled | |
| health_check_grace_period_sec | Integer | Health check grace period | |
| assign_public_ip | String | Assign public IP | e.g. ENABLED, DISABLED |
| subnets | List | Subnets | Subnet IDs of awsvpc network configuration |
| security_groups | List | Security groups | Security group IDs of awsvpc network configuration |
| capacity_provider_strategy | List | Capacity provider strategy | Elements with capacity_provider, weight, and base properties |
| load_balancers | List | Load balancers | Elements with target_group_arn, load_balancer_name, container_name, and container_port properties |
| service_registries | List | Service registries | Elements with registry_arn, port, container_name, and container_port properties |
| deployments | List | Deployments | Elements with id, status, task_definition, desired_count, running_count, pending_count, failed_tasks, rollout_state, rollout_state_reason, created_at, and updated_at properties |
| tags | List | Tags | Elements with key and value properties |