aws ec2 describe-key-pairs
Describes the specified key pairs or all of your key pairs. AWS CLI reference
5 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.--filtersThe filters.--include-public-keyIf true, the public key material is included in the response.--key-namesThe key pair names.--key-pair-idsThe IDs of the key pairs.