Is there any way to recover your AWS insyance, if you lost your key_pair?
Hardly not! because aws provide the key_pair only once.Here is one tip for recovering your AWS instance with a new set of key_pair.
Step1:Create a new AWS instance with the same instance type as the old one and save the new keu_pair(New instance would be in the same availability zone as the old one)
Step2:Stop the old instance and detach the root volume from the old one.
Step3:Attach the old instance root disk to new one
Now create a a mount point '/mnt/recovery' and mount the secondary volume to this mount point. For example, secondary volume is '/dev/xvdb1'
Step5: Unmount the secondary volume and detach the old root disk after stopping the new instance
Step6: Attach the root disk volume back to old instance and start it.