> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ec2-and-serverless-faults.md).

# EC2-backed and serverless faults

AWS faults are categorized into serverless, EC2-backed, and serverless combined with EC2-backed faults. Links to the respective faults are provided.

### Serverless faults <a href="#serverless-faults" id="serverless-faults"></a>

These experiments primarily involve ECS Fargate and aren't dependent on EC2 instances. They focus on altering the state or resources of ECS containers without direct container interaction.

Faults that belong to this category are listed below:

1. [ECS Fargate CPU Hog](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-fargate-cpu-hog.md)
2. [ECS Fargate Memory Hog](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-fargate-memory-hog.md)
3. [AWS ECS Invalid Container Image](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-invalid-container-image.md)
4. [AWS ECS Update Container Resource Limit](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-update-container-resource-limit.md)
5. [AWS ECS Update Container Timeout](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-update-container-timeout.md)
6. [AWS ECS Update Task Role](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-update-task-role.md)
7. [AWS ECS Container Volume Detach](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-volume-detach.md)

### EC2-backed faults <a href="#ec2-backed-faults" id="ec2-backed-faults"></a>

These experiments induce chaos within a container and depend on an EC2 instance. Typically, these are prefixed with "ECS container" and involve direct interaction with the EC2 instances hosting the ECS containers.

Faults that belong to this category are listed below:

1. [AWS ECS Agent Stop](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-agent-stop.md)
2. [AWS ECS Container CPU Hog](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-cpu-hog.md)
3. [AWS ECS Container HTTP Latency](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-http-latency.md)
4. [AWS ECS Container HTTP Modify Body](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-http-modify-body.md)
5. [AWS ECS Container HTTP Reset Peer](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-http-reset-peer.md)
6. [AWS ECS Container HTTP Status Code](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-http-status-code.md)
7. [AWS ECS Container IO Stress](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-io-stress.md)
8. [AWS ECS Container Memory Hog](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-memory-hog.md)
9. [AWS ECS Container Network Latency](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-network-latency.md)
10. [AWS ECS Container Network Loss](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-container-network-loss.md)
11. [AWS ECS Instance Stop](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-instance-stop.md)

### EC2-backed and serverless faults <a href="#ec2-backed-and-serverless-faults" id="ec2-backed-and-serverless-faults"></a>

These experiments are versatile and are applicable to both serverless ECS tasks and those backed by EC2 instances. They generally involve task-level chaos or access restrictions without causing direct in-container or in-VM disruptions.

Faults that belong to this category are listed below:

1. [AWS ECS Task Stop](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-task-stop.md)
2. [AWS ECS Task Scale](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-task-scale.md)
3. [AWS ECS Network Restrict](/resilience-testing/chaos-engineering/faults/chaos-fault-categories/aws/ecs-network-restrict.md)
