ssm

package
v0.0.0-...-3568c51 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func CancelCommand(commandIDs, region string) error

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

func SSMDeleteDocument(documentName, region string) error

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.

Jump to

Keyboard shortcuts

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