Documentation ¶
Index ¶
- func ApplyChaosSecurityGroupToInstances(svc *ec2.EC2, instances []*ec2.Instance, sg string) error
- func DeleteDenySecurityGroup(svc *ec2.EC2, sg string) error
- func ForceShutdownInstances(svc *ec2.EC2, instances []*ec2.Instance) error
- func GenerateDenySecurityGroup(svc *ec2.EC2, vpc *string) (string, error)
- func GetInstances(svc *ec2.EC2, o options.AwsOptions) ([]*ec2.Instance, error)
- func RebootInstances(svc *ec2.EC2, instances []*ec2.Instance) error
- func RevertChaosSecurityGroupOnInstances(svc *ec2.EC2, instances []*ec2.Instance) error
- func StartInstances(svc *ec2.EC2, instances []*ec2.Instance) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyChaosSecurityGroupToInstances ¶
ApplyChaosSecurityGroupToInstances applies given SecurityGroup ID (sg) to all instances provided in the ec2.Instance list (instances). Returns an error
func DeleteDenySecurityGroup ¶
DeleteDenySecurityGroup removes the given SecurityGroup ID from AWS. Returns an error
func ForceShutdownInstances ¶
ForceShutdownInstances will issue a StopInstances with the force flag call to the AWS API. Accepts a pointer to an EC2 service and a list of EC2 instances. Returns an error
func GenerateDenySecurityGroup ¶
GenerateDenySecurityGroup used to create an emtpy SecurityGroup within the AWS VPC given. Returns SecurityGroup-ID as a string and an error
func GetInstances ¶
func RebootInstances ¶
RebootInstances reboots all instances given in an ec2.Instance list (instances). Returns an error
func RevertChaosSecurityGroupOnInstances ¶
RevertChaosSecurityGroupOnInstances applies the original SecurityGroups to each ec2.Instance within the list (instances). Returns error
Types ¶
This section is empty.