CmdID

CmdID / aws / aws ec2

aws ec2 import-key-pair

Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool. AWS CLI reference

4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

4 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--key-nameA unique name for the key pair.
--public-key-materialThe public key.
--tag-specificationsThe tags to apply to the imported key pair.