Creates a new 2048-bit RSA key pair with the specified name. The public key is stored by Amazon EC2 and the private key is returned to you.
- request (CreateKeyPairRequest)
- Create Key Pair request
Create Key Pair Response from the service
AWSSDK (Module: AWSSDK) Version: 18.104.22.168 (22.214.171.124)
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. The key pair returned to you works only in the Region you're using when you create the key pair. To create a key pair that works in all Regions, use ImportKeyPair.