EC2 Get List of KeyPairs

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.

You can get the list of all KeyPairs in a particular region by using this action. To do this, you first need to configure the action, and select the required AWS connection. Select the region from where you wish to retrieve the list of key pair. You can also fetch a particular key pair by mentioning its name in the action settings.

ec2-get-list-of-keypairs

Once you have entered all the details, click on ‘Done’ and run the workflow. This will return the list of all KeyPairs in a particular region.

Output:
  • output-arrow aws-128 EC2 Get List of KeyPairs
    • left-triangle KeyPairs array
      • left-triangle KeyName string
      • left-triangle KeyFingerprint string