Skip to main content
Version: 0.0.25

Table: key_pair

Table to manage keypairs for EC2 instances. A key pair, consisting of a public key and a private key, is a set of security credentials that you use to prove your identity when connecting to an Amazon EC2 instance.

Amazon EC2 stores the public key on your instance, and you store the private key.

Keys can only be listed and deleted. The keypairs can be created using key_pair_request and key_pair_import methods.


SELECT * FROM key_pair WHERE name = 'key';
DELETE FROM key_pair WHERE name = 'key';



Optional fingerprint: string

Generated fingerprint for the keypair


Optional key_pair_id: string

AWS generated ID for the keypair

name: string

Name for the EC2 keypair

Optional public_key: string

Public key for the keypair. This will be used to grant ssh access to the associated instances.

region: string

Region for the keypair

type: key_type

Type for the key