| 52 | |
| 53 | === Retrieving Lost Keypair === |
| 54 | If you lose your keypair then you need to: |
| 55 | * Create a new keypair in the AWS console & download the generated private key |
| 56 | * Stop the instance |
| 57 | * Create an AMI from this instance |
| 58 | * Wait for the AMI to be ready |
| 59 | * Launch a new instance using this AMI |
| 60 | * Re-associate the Public IP |
| 61 | * Delete the old instance |
| 62 | * Deregister the AMI |
| 63 | * Delete the snapshot used to create the AMI |
| 64 | |
| 65 | Thanks to: http://itkbcentral.blogspot.co.uk/2011/07/replace-lost-key-pair-existing-aws-ec2.html |