Documentation
¶
Index ¶
Constants ¶
const DefaultDocumentName = "AWS-StartPortForwardingSession"
DefaultDocumentName is the AWS managed document used to start a port forwarding session when no custom document is specified.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
SvcClient ssmiface.SSMAPI
Region string
InstanceID string
LocalPort, RemotePort int
Ec2Conn *ec2.EC2
DocumentName string
// RestartOnAgentDisconnect restarts the port forwarding session when the SSM agent on
// the instance disconnects from Session Manager, e.g. during a reboot.
RestartOnAgentDisconnect bool
}
func (Session) Start ¶
Start an interactive Systems Manager session with a remote instance via the AWS session-manager-plugin. To terminate the session you must cancel the context. If you do not wish to terminate the session manually: calling StopSession on a instance of this driver will terminate the active session created from calling StartSession. To stop the session you must cancel the context.