Amazon AWS create key pair using awscli
To create key pair in Amazon AWS using command line, run
aws ec2 create-key-pair --key-name NAME_OF_KEY
This will display your SSK private key or PEM file. This you can store for future use.
Example
boby@hon-pc-01:~$ aws ec2 create-key-pair --key-name sok { "KeyMaterial": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAgaS2CspXHvaod9jON5DqDqc1ZywbeC6fYwKFjOx+MqOffK2KgRMoD76iAzlC\n4gbMxF5qLwH62yoKqcMq1GQRNNusffOY5KY4mRT/e9MtGymt70tvJh6BMVdlSzP3sFSho2Goj7+4\nfE/+GHCLmud60hBPi7+1SM9S0nTQ5NLIjOW5PKltuC0gYDiktRGfd1UQCFQTYcNYvmVjMDrQ/sGh\nnAAnJJ2+fRTFtKFH5jfhylNWaHm39vHPzPBTDddZezM/14JCiuM38EUCfeV+Z8y1qinHWKfkKV9J\ntLgPnUiUQipmXIKaVFL0wT1bb0AYfYsVT1FySOQ/xUKyoAjknQteJQIDAQABAoIBAHQgZjAkLwW9\nTAqOWanMVNvrSxqvl6t/l6XIjHg/HoudpS65BGe6ERiJWfYpRI/SJ3l+WP7idyH59rM57xNwzzjZ\nzRjFKx8lBW2aMX9pGe5K11KR723lxTO9ZS6HzkZUiLUgtSyOP2KbBLA/n82Rq6KemaJEhs5BZ568\npKFTbfFGTpCOoM0L7sbSVVaGih5rHcFkmv3Co2SCDH11xRWIsO6lPaSBs+uBo0Cw8Mqs3CTfV+lE\nhKR/zZpqiDL/5flrvVHM1tgIHJsY1MlW+60hHw6e6yREK9+yFnHd3U5lC5MrKuLNuZS0y5TPEvkk\nET435D4lmEE3U0/+YkmYy8njRgECgYEAvdjLmIV4kzz3b8UuI3XxiMbuT0doYCJ0qeoQpqfXKZyE\n+8+TD043CgC8XoTuSdCS9rYMdYuOOftftocBzi02Pv0DsMPNBLuwv5VcgQ/Uv0askF6s/dQVMFrw\nmyjvVa0ZpjZac2NhKOMIb9BXTFzwoljX8AHRyGuw0+kxLBHkS0kCgYEAr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