Serverless Chaos Monkey is a serverless implementation of Netflix Chaos Monkey through AWS Lambdas in Python. Present functionality involves two modes of operation:
- ecs Mode: Allows you to configure chaos monkey to check resiliency of your ecs cluster by randomly terminating any container instance. This is highly useful for micro-services based architectures.
- autoscaling Mode: This is conventional chaos monkey implementation that randomly terminate ec2 instances in your autoscaling group.
Provide your configuration details in config.py file.
- mode_of_operation: accepted values: 'autoscaling', 'ecs'.
2)autoscaling_group_name: Name of autoscaling group(required if mode_of_operaton= autoscaling)
3)cluster_arn: Arn of ecs cluster (required if mode_of_operation= ecs)
lambda.py : Contains lambda handler function.
config.py : Provide Configuration details here.
chaos.py : Implementation of functions to introduce chaos.
Iam Policies : Define a role for lambda and attach following policies:
- AmazonEC2FullAcess
- AmazonECS_FullAccess
Create a lambda deployment package and mention lambda handler name as lambda.lambda_handler while deploying the package.
