Skip to main content

serial_console_ssh_public_keys

Creates, updates, deletes, gets or lists a serial_console_ssh_public_keys resource.

Overview​

Nameserial_console_ssh_public_keys
TypeResource
Idaws.ec2_instance_connect.serial_console_ssh_public_keys

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
send_serial_console_ssh_public_keyexecregion, InstanceId, SSHPublicKeyPushes 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

Lifecycle Methods​

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.

EXEC aws.ec2_instance_connect.serial_console_ssh_public_keys.send_serial_console_ssh_public_key
@region='{{ region }}' --required
@@json=
'{
"InstanceId": "{{ InstanceId }}",
"SerialPort": {{ SerialPort }},
"SSHPublicKey": "{{ SSHPublicKey }}"
}'
;