Aws Ecs Service Status Check
Validates the status of an Amazon ECS service. This probe checks if the specified ECS service has reached the desired state (e.g., running tasks count matches desired count) within the given timeout.
Infrastructure type
Kubernetes
Use cases
AWS ECS Service Status Check probe helps you:
Ensure ECS services maintain desired task count during failures
Validate service auto-scaling behavior during load changes
Monitor service health during container chaos experiments
Verify service deployment and rollback operations
Overview
This probe uses the AWS CLI to query ECS service status and validates that the service has reached its desired state. It continuously checks the running task count against the desired count, making it ideal for monitoring service stability during chaos experiments.
Probe type
Command Probe
Prerequisites
Kubernetes cluster with chaos infrastructure installed
AWS credentials configured with appropriate IAM permissions:
ecs:DescribeServicesecs:DescribeClustersecs:ListTasks
Network connectivity to AWS API endpoints
Target ECS cluster and services should be accessible
Probe properties
Command
Comparator
string
contains
[Pass]
The probe passes when the command output contains [Pass], indicating the ECS service has reached the desired state.
Environment variables
CLUSTER_NAME
Name of the ECS cluster containing the service (e.g., my-ecs-cluster).
Yes
-
SERVICE_NAMES
Comma-separated list of ECS service names to check (e.g., web-service,api-service).
Yes
-
REGION
AWS region where the ECS cluster is located (e.g., us-east-1, eu-west-2).
Yes
-
STATUS_CHECK_TIMEOUT
Maximum time in seconds to wait for the service to reach desired state.
No
180
STATUS_CHECK_DELAY
Delay in seconds between status checks.
No
2
Run properties
timeout
Maximum time to wait for the probe to complete (e.g., 30s, 1m, 5m)
String
300s
interval
Time between probe executions (e.g., 5s, 30s, 1m)
String
10s
attempt
Number of retry attempts before marking the probe as failed
Integer
1
pollingInterval
Time between retry attempts (e.g., 1s, 5s, 10s)
String
-
initialDelay
Initial delay before starting the probe (e.g., 0s, 10s, 30s)
String
-
stopOnFailure
Stop the experiment if the probe fails
Boolean
false
verbosity
Log verbosity level (info, debug, trace)
String
-
Probe definition
You can define this probe in your chaos experiment as follows:
Single service check
Multiple services check
Last updated
Was this helpful?