go-chaos uses HCL for the configuration language.
app = "my awesome prod app"
description = "This app runs over EC2, experiment consists on terminate 5 instances in us-east-1 region"
job "aws" "ec2" {
region = "us-east-1"
config "chaos" {
tag = "Name:app-prod"
chaos = "terminate"
count = 5
}
}
go-chaos will look for EC2 instances in the region us-east-1 with the tag Name:app-prod
, randomly select 5
and terminate
those them.