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.
See https://www.paws-r-sdk.com/docs/ec2instanceconnect_send_ssh_public_key/ for full documentation.
ec2instanceconnect_send_ssh_public_key(
InstanceId,
InstanceOSUser,
SSHPublicKey,
AvailabilityZone = NULL
)
[required] The ID of the EC2 instance.
[required] The OS user on the EC2 instance for whom the key can be used to authenticate.
[required] The public key material. To use the public key, you must have the matching private key.
The Availability Zone in which the EC2 instance was launched.