chaosity

command module
v0.0.0-...-b8b15f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Chaosity

A general chaos engineering platform to perform different chaos testing scenarios on your environment. Currently the testing only consists of basic scenarios for AWS but will support Kubernetes testing as well as others in the future.

Usage
Usage:
  chaosity aws instances [flags]

Flags:
  -d, --deny               Apply deny security group to instances.
  -h, --help               help for instances
      --instances string   Individual AWS Instance IDs to perform chaos on, comma separated.
  -r, --reboot             Reboot selected instances from subnets or availability-zone.
  -s, --shutdown           Force stop selected instances from subnets or availability-zone.

Global Flags:
      --availability-zone string   AWS Availibility-Zone to perform chaos on.
      --duration int               How long to perform chaos testing for in seconds (default 300)
      --profile string             AWS credentials profile to use in order to connect (required)
      --region string              AWS region to perform chaos in (required)
      --subnets string             AWS Subnet IDs to perform chaos on (comma separated)
      --tags string                Tags applied to resource to match on. Format: key1=value1,key2=value2
      --vpc-id string              AWS VPC to perform chaos in (required)

Example:

chaosity aws instances --profile default --region us-east-1 --subnets subnet-75502f38,subnet-0dc0f76bf7ca00009 --duration 10 --deny --reboot
Created SecurityGroup  sg-02035af5bc9fc6afb
Applying SecurityGroups  sg-02035af5bc9fc6afb  to instance  i-0cc126878ba6b1610
Applying SecurityGroups  sg-02035af5bc9fc6afb  to instance  i-0f8dd4db1319d540e
Rebooting instance  i-0cc126878ba6b1610
Rebooting instance  i-0f8dd4db1319d540e
Chaos! Waiting for  10  seconds...
Applying SecurityGroups  sg-0470f76d5d6316aec  to instance  i-0cc126878ba6b1610
Applying SecurityGroups  sg-0dfc38f6b07adbace  to instance  i-0f8dd4db1319d540e
Deleting SecurityGroup  

Documentation

Overview

Copyright © 2020 Michael Straughan <straughan.michael@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
internal
aws
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL