command

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// remoteCommandTimeout int = 300
	// https://www.pulumi.com/docs/intro/concepts/resources/options/customtimeouts/
	RemoteTimeout string = "40m"

	CommandCloudInitWait string = "sudo cloud-init status --wait"
	CommandPing          string = "echo ping"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteCommand

type RemoteCommand func(ctx *pulumi.Context, remoteCommand, remoteCommandName string) error

Remote command success if error = nil

type RemoteInstance

type RemoteInstance struct {
	InstanceIP *pulumi.StringOutput
	Instance   *ec2.Instance
	Username   string
	PrivateKey *tls.PrivateKey
}

func (RemoteInstance) RemoteExec

func (r RemoteInstance) RemoteExec(ctx *pulumi.Context, remoteCommand pulumi.StringPtrInput, remoteCommandName string,
	dependecies []pulumi.Resource) (*remote.Command, error)

Jump to

Keyboard shortcuts

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