ssm

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHOnSSMCommandRunner

func NewSSHOnSSMCommandRunner(client *ssm.Client, jumpboxInstanceId string, logger logr.Logger) e2eCommands.RemoteCommandRunner

func RunCommand added in v1.0.2

func RunCommand(ctx context.Context, client *ssm.Client, instanceId, command string, logger logr.Logger) (e2eCommands.RemoteCommandOutput, error)

func WaitForInstance added in v1.0.2

func WaitForInstance(ctx context.Context, client *ssm.Client, instanceId string, logger logr.Logger) error

WaitForInstance uses DescribeInstanceInformation in a loop to wait for it be registered There is no built in wait for instance to be registered with ssm see: https://github.com/aws/aws-cli/issues/4006

Types

type SSHOnSSM

type SSHOnSSM struct {
	// contains filtered or unexported fields
}

func (*SSHOnSSM) Run

func (s *SSHOnSSM) Run(ctx context.Context, ip string, commands []string) (e2eCommands.RemoteCommandOutput, error)

Jump to

Keyboard shortcuts

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