awsCmds

package
v0.0.0-...-b65082e Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSMSendCmd

func SSMSendCmd(windows bool, instanceID, cmdString string) (string, error)

SSMSendCmd sends a command to an EC2 windows instance

Types

type EC2InstanceStatus

type EC2InstanceStatus struct {
	InstanceID     string
	SystemStatus   string
	InstanceStatus string
}

EC2InstanceStatus defines the Status of an EC2 instance

func Ec2DescribeInstanceStatus

func Ec2DescribeInstanceStatus(instanceID string) (EC2InstanceStatus, error)

Ec2DescribeInstanceStatus is a wrapper that returns the healthcheck status of an EC2 instance

type SSMCommandInfo

type SSMCommandInfo struct {
	InstanceID    string
	CommandID     string
	CommandStatus string
	StdOut        string
	StdErr        string
}

SSMCommandInfo describes an SSM Command Invocation

func SSMGetCmd

func SSMGetCmd(instanceID, cmdID string) (SSMCommandInfo, error)

SSMGetCmd queries SSM for a command invocation

Jump to

Keyboard shortcuts

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