EC2 Delete 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.

This action helps you delete any key pair that you had created earlier. It removes the corresponding public key from AWS EC2. To delete a key pair through this action, you first need to configure the action, and select the required AWS connection. Select the region where the KeyPair resides. Mention the name of the KeyPair that you wish to delete.


You can also perform a dry run to check if you have the required permissions to delete the KeyPair. Once you have entered all the required details, click on ‘Done’ and run the workflow. This will delete the specified KeyPair.

  • output-arrow aws-128 EC2 Delete KeyPair
    • left-triangle result boolean