Is there a way to reassign a key pair to an already existing EC2 instance?
No. There is no way to apply a key pair to a running instance.
Key pairs can be used only to launch a new instance.
Note: For security reasons, the key pairs can only be downloaded once from Amazon.
A possible alternative to overcome the above problem would be:
- Launch a new instance.
- Select the key pair which you want at time of launch.
You can create your Keypair and upload that authorization_key file