Documentation
¶
Index ¶
- Variables
- func GetDocumentName(parameters map[string][]string) *string
- func SessionParametersFromPortForwards(pfs []config.PortForward) (map[string][]string, error)
- func StartEc2Session(ctx context.Context, config aws.Config, region, instanceId string, ...) error
- func StartEcsSession(ctx context.Context, config aws.Config, ...) error
- func StartSession(ctx context.Context, session interface{}, target ssm.StartSessionInput, ...) error
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 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 StartSession ¶ added in v0.0.44
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.