ssm

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DocNameStartSSH                = "AWS-StartSSHSession"
	DocNamePortForward             = "AWS-StartPortForwardingSession"
	DocNamePortForwardToRemoteHost = "AWS-StartPortForwardingSessionToRemoteHost"
)

Functions

func GetDocumentName added in v0.0.56

func GetDocumentName(parameters map[string][]string) *string

func SessionParametersFromPortForwards added in v0.0.56

func SessionParametersFromPortForwards(pfs []config.PortForward) (map[string][]string, error)

func StartEc2Session added in v0.0.44

func StartEc2Session(ctx context.Context, config aws.Config, region, instanceId string, parameters map[string][]string) error

StartEc2Session initiates an interactive SSH session with an EC2 instance using SSM See setup guide: https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html In short, the following is necessary for this function to work

  • ec2 instance has SSM agent installed and registered
  • ec2 instance is configured with instance profile that has the AmazonSSMManagedInstanceCore policy attached (or an equivalent custom policy)
  • config contains an AWS identity that has access to ssm:StartSession on the EC2 Instance

func StartEcsSession

func StartEcsSession(ctx context.Context, config aws.Config, region, cluster, taskId, containerName, cmd string, parameters map[string][]string) error

func StartSession added in v0.0.44

func StartSession(ctx context.Context, session interface{}, target ssm.StartSessionInput, region, endpointUrl string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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