Documentation ¶
Index ¶
- Constants
- func CancelCommand(commandIDs, region string) error
- func CheckInstanceInformation(experimentsDetails *experimentTypes.ExperimentDetails) error
- func CheckTargetInstanceStatus(experimentsDetails *experimentTypes.ExperimentDetails) error
- func CreateAndUploadDocument(documentName, documentType, documentFormat, documentPath, region string) error
- func SSMDeleteDocument(documentName, region string) error
- func SendSSMCommand(experimentsDetails *experimentTypes.ExperimentDetails, ec2InstanceID []string) (string, error)
- func WaitForCommandStatus(status, commandID, ec2InstanceID, region string, timeout, delay int) error
Constants ¶
View Source
const (
// DefaultSSMDocsDirectory contains path of the ssm docs
DefaultSSMDocsDirectory = "LitmusChaos-AWS-SSM-Docs.yml"
)
Variables ¶
This section is empty.
Functions ¶
func CancelCommand ¶
CancelCommand will cancel the ssm command
func CheckInstanceInformation ¶
func CheckInstanceInformation(experimentsDetails *experimentTypes.ExperimentDetails) error
CheckInstanceInformation will check if the instance has permission to do smm api calls
func CheckTargetInstanceStatus ¶
func CheckTargetInstanceStatus(experimentsDetails *experimentTypes.ExperimentDetails) error
CheckTargetInstanceStatus will select the target instance which are in running state and filtered from the given instance tag and check its status
func CreateAndUploadDocument ¶
func CreateAndUploadDocument(documentName, documentType, documentFormat, documentPath, region string) error
CreateAndUploadDocument will create and add the ssm document in aws service monitoring docs.
func SSMDeleteDocument ¶
SSMDeleteDocument will delete all the versions of docs uploaded for the chaos.
func SendSSMCommand ¶
func SendSSMCommand(experimentsDetails *experimentTypes.ExperimentDetails, ec2InstanceID []string) (string, error)
SendSSMCommand will create and add the ssm document in aws service monitoring docs.
func WaitForCommandStatus ¶
func WaitForCommandStatus(status, commandID, ec2InstanceID, region string, timeout, delay int) error
WaitForCommandStatus will wait until the ssm command comes in target status
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.