Documentation
¶
Index ¶
- func NewSSHOnSSMCommandRunner(client *ssm.Client, jumpboxInstanceId string, logger logr.Logger) e2eCommands.RemoteCommandRunner
- func RunCommand(ctx context.Context, client *ssm.Client, instanceId, command string, ...) (e2eCommands.RemoteCommandOutput, error)
- func WaitForInstance(ctx context.Context, client *ssm.Client, instanceId string, logger logr.Logger) error
- type SSHOnSSM
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 ¶
Click to show internal directories.
Click to hide internal directories.