All Projects → adhorn → Chaos Ssm Documents

adhorn / Chaos Ssm Documents

Licence: mit
Collection of AWS SSM Documents to perform Chaos Engineering experiments

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Chaos Ssm Documents

aws-chaos-scripts
DEPRECATED Collection of python scripts to run failure injection on AWS infrastructure
Stars: ✭ 91 (-59.56%)
Mutual labels:  software-engineering, sre, amazon-web-services, chaos-engineering
Performance-Engineers-DevOps
This repository helps performance testers and engineers who wants to dive into DevOps and SRE world.
Stars: ✭ 35 (-84.44%)
Mutual labels:  chaos, sre, chaos-engineering
aws-fis-templates-cdk
Collection of AWS Fault Injection Simulator (FIS) experiment templates deploy-able via the AWS CDK
Stars: ✭ 43 (-80.89%)
Mutual labels:  sre, amazon-web-services, chaos-engineering
aws-lambda-chaos-injection
Chaos Injection library for AWS Lambda
Stars: ✭ 82 (-63.56%)
Mutual labels:  sre, amazon-web-services, chaos-engineering
xk6-chaos
xk6 extension for running chaos experiments with k6 💣
Stars: ✭ 18 (-92%)
Mutual labels:  chaos, sre, chaos-engineering
Aws Ec2 Ssh
Manage AWS EC2 SSH access with IAM
Stars: ✭ 796 (+253.78%)
Mutual labels:  aws, amazon-web-services, aws-ec2
Howtheyaws
A curated collection of publicly available resources on how technology and tech-savvy organizations around the world use Amazon Web Services (AWS)
Stars: ✭ 389 (+72.89%)
Mutual labels:  aws, amazon-web-services, sre
Molecule Ansible Docker Aws
Example project showing how to test Ansible roles with Molecule using Testinfra and a multiscenario approach with Docker, Vagrant & AWS EC2 as infrastructure providers
Stars: ✭ 72 (-68%)
Mutual labels:  aws, amazon-web-services, aws-ec2
Aws Labs
step by step guide for aws mini labs. Currently maintained on : https://github.com/Cloud-Yeti/aws-labs Youtube playlist for labs:
Stars: ✭ 153 (-32%)
Mutual labels:  aws, aws-ec2
Aws Sdk Perl
A community AWS SDK for Perl Programmers
Stars: ✭ 153 (-32%)
Mutual labels:  aws, amazon-web-services
Autospotting
Saves up to 90% of AWS EC2 costs by automating the use of spot instances on existing AutoScaling groups. Installs in minutes using CloudFormation or Terraform. Convenient to deploy at scale using StackSets. Uses tagging to avoid launch configuration changes. Automated spot termination handling. Reliable fallback to on-demand instances.
Stars: ✭ 2,014 (+795.11%)
Mutual labels:  aws, amazon-web-services
Amazon Ec2 Instance Selector
A CLI tool and go library which recommends instance types based on resource criteria like vcpus and memory
Stars: ✭ 146 (-35.11%)
Mutual labels:  aws, aws-ec2
Aws Csa Pro 2019
AWS Certified Solution Architect Professional (SAP-C01)
Stars: ✭ 143 (-36.44%)
Mutual labels:  aws, amazon-web-services
Pumba
Chaos testing, network emulation, and stress testing tool for containers
Stars: ✭ 2,136 (+849.33%)
Mutual labels:  chaos-engineering, chaos
Code2
Code of Amazon Web Services in Action, Second Edition
Stars: ✭ 138 (-38.67%)
Mutual labels:  aws, amazon-web-services
Cognito Express
Authenticates API requests on a Node application by verifying the JWT signature of AccessToken or IDToken generated by Amazon Cognito.
Stars: ✭ 165 (-26.67%)
Mutual labels:  aws, amazon-web-services
Ec2instancespricing
Quick and dirty Python API and CLI to get EC2 instance pricing for On-Demand and Reserved Instances
Stars: ✭ 166 (-26.22%)
Mutual labels:  aws, aws-ec2
Ebs Automatic Nvme Mapping
Automatic mapping of EBS volumes via NVMe block devices to standard block device paths
Stars: ✭ 136 (-39.56%)
Mutual labels:  aws, aws-ec2
Chaosengineeringbootcamp
A Chaos Engineering Bootcamp
Stars: ✭ 164 (-27.11%)
Mutual labels:  chaos-engineering, chaos
Aws Csa Notes 2018
My AWS Certified Solutions Architect Associate Study Notes!
Stars: ✭ 167 (-25.78%)
Mutual labels:  amazon-web-services, aws-ec2

Chaos Injection for AWS resources using Amazon SSM Run Command and Automation

Issues Maintenance Twitter

Collection of SSM Documents.

These documents let you perform chaos engineering experiments on resources (applications, network, and infrastructure) in the AWS Cloud.

SSM Automation documents:

To use SSM Automation, check the link

  • Support for (randomly) stopping EC2 instances via API
  • Support for (randomly) stopping EC2 instances via AWS Lambda
  • Support for (randomly) terminating EC2 instances via API
  • Support for detaching EBS volumes from EC2 instances via API (ec2, ebs)
  • Support for rebooting RDS instance with proper tags via API
  • Support for CPU stress scenario via Run Command

Upload an SSM Automation document:

aws ssm create-document --name "StopRandomInstances-API" --content file://stop-random-instance-api.yml --document-type "Automation" --document-format YAML

SSM Run Command documents:

To use SSM Run Command, please check this link

Support Canceling & Rollback (10s max)

  • Support for latency injection using latency-stress.yml
  • Support for latency with delta stress using latency-delta-stress.yml
  • Support for CPU burn using cpu-stress.yml
  • Support for IO stress using io-stress.yml
  • Support for memory stress using memory-stress.yml
  • Support for network stress using network-corruption-stress.yml
  • Support for packet Loss stress using network-loss-stress.yml
  • Support for killing a process by name using kill-process.yml
  • Support for diskspace stress using diskspace-stress.yml

Experimental

  • Support for configurable blackhole stress using blackhole-stress.yml
  • Support for blackhole S3 stress using blackhole-s3-stress.yml
  • Support for blackhole DynamoDB stress using blackhole-dynamo-stress.yml
  • Support for blackhole EC2 stress using blackhole-ec2-stress.yml
  • Support for blackhole DNS stress using blackhole-dns-stress.yml
  • Support for latency injection to a particular AWS service latency-service-stress.yml

Prerequisites

Upload one document at a time

cd chaos-ssm-documents/automation

aws ssm create-document --content file://cpu-stress.yml --name "cpu-stress" --document-type "Command" --document-format YAML

Upload all of the SSM Documents to the AWS region of your choice

cd chaos-ssm-documents/run-command

./upload-document.sh -r eu-west-1 (or other region of your choice)

Upload all of the SSM Documents using CloudFormation

cd chaos-ssm-documents/

run-command/create-cfn.sh run-command/ | tee cfn-chaos-ssm.yml

aws cloudformation create-stack --stack-name ChaosSsm --template-body file://cfn-chaos-ssm.yml

Specify AWS region using AWS CLI --region argument.

Once deployed, the stack cannot be updated. Remove existing stack and re-deploy to apply changes.

SOME WORDS OF CAUTION BEFORE YOU START BREAKING THINGS:

  • To begin with, DO NOT use these chaos injection commands in production blindly!!
  • Always review the SSM documents and the commands in them.
  • Make sure your first chaos injections are done in a test environment and on test instances where no real and paying customer can be affected.
  • Test, test, and test more. Remember that chaos engineering is about breaking things in a controlled environment and through well-planned experiments to build confidence in your application — and you own tools — to withstand turbulent conditions.

One-click Deploy via CloudFormation

Region Launch Stack
US East (N. Virginia) us-east-1 Launch Stack
US East (Ohio) us-east-2 Launch Stack
US West (N. California) us-west-1 Launch Stack
US West (Oregon) us-west-2 Launch Stack
Canada (Central) ca-central-1 Launch Stack
Africa (Cape Town) af-south-1 Launch Stack
Asia Pacific (Hong Kong) ap-east-1 Launch Stack
Asia Pacific (Mumbai) ap-south-1 Launch Stack
Asia Pacific (Seoul) ap-northeast-2 Launch Stack
Asia Pacific (Singapore) ap-southeast-1 Launch Stack
Asia Pacific (Sydney) ap-southeast-2 Launch Stack
Asia Pacific (Tokyo) ap-northeast-1 Launch Stack
Europe (Frankfurt) eu-central-1 Launch Stack
Europe (Ireland) eu-west-1 Launch Stack
Europe (London) eu-west-2 Launch Stack
Europe (Paris) eu-west-3 Launch Stack
Europe (Stockholm) eu-north-1 Launch Stack
Middle East (Bahrain) me-south-1 Launch Stack
South America (São Paulo) sa-east-1 Launch Stack
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].