Skip to main content

KeyPair

Provide a reference to an SSH key pair, used to connect to EC2 instances.

See the AWS documentation for ec2 key pair to create a new one.

const keyPair = await provider.useKeyPair({
name: "kp",
});

Examples#

Used By#

Aws cli#

List the available key pairs:

aws ec2 describe-key-pairs