aws

package
v0.0.0-...-fc646d6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EC2Start

func EC2Start(instanceID, region string) error

EC2Start will stop an aws ec2 instance

func EC2Stop

func EC2Stop(instanceID, region string) error

EC2Stop will stop an aws ec2 instance

func GetEC2InstanceStatus

func GetEC2InstanceStatus(instanceID, region string) (string, error)

GetEC2InstanceStatus will verify and give the ec2 instance details along with ebs volume idetails.

func GetInstanceList

func GetInstanceList(instanceTag, region string) ([]string, error)

GetInstanceList will filter out the target instance under chaos using tag filters or the instance list provided.

func InstanceStatusCheck

func InstanceStatusCheck(targetInstanceIDList []string, region string) error

InstanceStatusCheck is used to check the instance status of the instances

func InstanceStatusCheckByID

func InstanceStatusCheckByID(instanceID, region string) error

InstanceStatusCheckByID is used to check the instance status of all the instance under chaos.

func InstanceStatusCheckByTag

func InstanceStatusCheckByTag(instanceTag, region string) error

InstanceStatusCheckByTag is used to check the instance status of all the instance under chaos.

func PostChaosNodeCountCheck

func PostChaosNodeCountCheck(activeNodeCount int, autoScalingGroupName, region string) error

PostChaosNodeCountCheck checks if the active node count after injection of chaos is equal to pre-chaos node count

func PreChaosNodeCountCheck

func PreChaosNodeCountCheck(instanceIDList []string, region string) (int, string, error)

PreChaosNodeCountCheck returns the active node count before injection of chaos

func WaitForEC2Down

func WaitForEC2Down(timeout, delay int, managedNodegroup, region, instanceID string) error

WaitForEC2Down will wait for the ec2 instance to get in stopped state

func WaitForEC2Up

func WaitForEC2Up(timeout, delay int, managedNodegroup, region, instanceID string) error

WaitForEC2Up will wait for the ec2 instance to get in running state

Types

This section is empty.

Jump to

Keyboard shortcuts

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