EC2 Create KeyPair

Amazon Web Services (AWS)’s Elastic Compute Cloud (EC2) is a commercial web service that allows users to rent virtual computers. Using AWS EC2’s cloud infrastructure, you can build powerful servers in the cloud. This service completely eliminates the need to set up and invest in hardware, enabling you to deploy your apps quickly. With AWS EC2, you can set up servers, configure networking and security, and manage storage.

AWS EC2 makes use of public–key cryptography for encrypting and decrypting login information. For encrypting data, the public–key cryptography uses a public key, and for decrypting it, the user uses a private key. These two keys (public and private) together are known as KeyPair.

When you log in to your instance, you need to create a KeyPair. While launching the instance, you need to provide the key name. And while connecting the instance, you will have to provide the key.

Using this action, you can create a 2048-bit RSA KeyPair. You can create up to 5,000 KeyPairs per region. To create a new KeyPair, you first need to configure the action, and select the required AWS connection. Select the region in which you intend to create it. Next, specify an appropriate and unique name for this KeyPair. You can also perform a dry run to check if you have the required permissions to create a new KeyPair.

ec2-create-keypair

Once you have entered all the required details, click on ‘Done’ and run the workflow. This will create a new KeyPair.

Output:
  • output-arrow aws-128 EC2 Create KeyPair
    • left-triangle KeyName string
    • left-triangle KeyFingerprint string
    • left-triangle KeyMaterial string