Learn R Programming

paws.compute (version 0.7.0)

ec2_create_key_pair: Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format

Description

Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a key with the specified name already exists, Amazon EC2 returns an error.

See https://www.paws-r-sdk.com/docs/ec2_create_key_pair/ for full documentation.

Usage

ec2_create_key_pair(
  KeyName,
  DryRun = NULL,
  KeyType = NULL,
  TagSpecifications = NULL,
  KeyFormat = NULL
)

Arguments

KeyName

[required] A unique name for the key pair.

Constraints: Up to 255 ASCII characters

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

KeyType

The type of key pair. Note that ED25519 keys are not supported for Windows instances.

Default: rsa

TagSpecifications

The tags to apply to the new key pair.

KeyFormat

The format of the key pair.

Default: pem