Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EC2 ¶
type EC2 struct { Instances []*autoscaling.Instance Config *config.Config // contains filtered or unexported fields }
EC2 encapsulates methods for curating chaos on AWS EC2 instances within an autoscaling group.
func (*EC2) DescribeASG ¶
DescribeASG retrives all of the instances within the configured Auto Scaling Group (ASG). This includes all of their metadata. The instances within the ASG are then assigned to the current instances `Instances` slice for use by the `TerminateInstances` method. See https://docs.aws.amazon.com/sdk-for-go/api/service/autoscaling/#Instance
func (*EC2) TerminateInstances ¶
func (e *EC2) TerminateInstances() ([]*ec2.InstanceStateChange, error)
TerminateInstances uses the returned instance metadata and the user's configuration, to terminate the instances within the configured Auto Scaling Group. NOTE: The API accepts 1000 instance IDs at max.