Ec2 Instance Connect

This page documents function available when using the Ec2_Instance_Connect module, created with @service Ec2_Instance_Connect.

Index

Documentation

Main.Ec2_Instance_Connect.send_serial_console_sshpublic_keyMethod
send_serial_console_sshpublic_key(instance_id, sshpublic_key)
send_serial_console_sshpublic_key(instance_id, sshpublic_key, params::Dict{String,<:Any})

Pushes an SSH public key to the specified EC2 instance. The key remains for 60 seconds, which gives you 60 seconds to establish a serial console connection to the instance using SSH. For more information, see EC2 Serial Console in the Amazon EC2 User Guide.

Arguments

  • instance_id: The ID of the EC2 instance.
  • sshpublic_key: The public key material. To use the public key, you must have the matching private key. For information about the supported key formats and lengths, see Requirements for key pairs in the Amazon EC2 User Guide.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "SerialPort": The serial port of the EC2 instance. Currently only port 0 is supported. Default: 0
source
Main.Ec2_Instance_Connect.send_sshpublic_keyMethod
send_sshpublic_key(instance_id, instance_osuser, sshpublic_key)
send_sshpublic_key(instance_id, instance_osuser, sshpublic_key, params::Dict{String,<:Any})

Pushes an SSH public key to the specified EC2 instance for use by the specified user. The key remains for 60 seconds. For more information, see Connect to your Linux instance using EC2 Instance Connect in the Amazon EC2 User Guide.

Arguments

  • instance_id: The ID of the EC2 instance.
  • instance_osuser: The OS user on the EC2 instance for whom the key can be used to authenticate.
  • sshpublic_key: The public key material. To use the public key, you must have the matching private key.

Optional Parameters

Optional parameters can be passed as a params::Dict{String,<:Any}. Valid keys are:

  • "AvailabilityZone": The Availability Zone in which the EC2 instance was launched.
source