Skip to main content
Kinetic Community

AWS EC2 Create Key Pair

Creates a 2048-bit RSA key pair with the specified name.

Downloads

By downloading this file, you acknowledge that you agree to our Terms of Service

aws_ec2_create_key_pair_v1.zip

Detailed Description

Creates a 2048-bit RSA key pair with the specified name. 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#8 private key. If a key with the specified name already exists, Amazon EC2 returns an error. For more information about key pairs, see the Amazon Elastic Compute Cloud User Guide online.

The Dry Run parameter validates user permissions and inputs. If it is set to true, an error will always be thrown by the handler before completing the handler action. Error response will be 'DryRunOperation' if the account has proper permissions and inputs; 'UnauthorizedOperation' if the account does not have proper permissions.

Parameters

Name Description
Dry Run Dry run validates user permissions and inputs without completing the EC2 action (true or false).
Key Name A unique name for the key pair.

Sample Configuration

Parameter Example Configuration
Dry Run false
Key Name sample-key

Results

Name Description
Name Name of the successfully created key pair.
Fingerprint Fingerprint of the successfully created key pair.
Material The full contents of the created private key.

Change Log

Version Date Description
1 2017-08-21 * Initial version. See README for details.