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
Options
--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.