AWS Fault Injection Simulator
{
"description": "Kill one ECS task",
"targets": {
"tasks": { "resourceType": "aws:ecs:task",
"selectionMode": "PERCENT(33)" }
},
"actions": {
"kill-tasks": {
"actionId": "aws:ecs:stop-task",
"targets": { "Tasks": "tasks" }
}
},
"stopConditions": [
{ "source": "aws:cloudwatch:alarm",
"value": "arn:aws:cloudwatch:...:alarm:high-error-rate" }
]
}
stopConditions: automatically halt the experiment if a CloudWatch alarm fires — your safety net.