What To Do If You Lose Your EC2 Private Key

This hasn’t happened to me, but knowing that it could encourages me to take note of how to address the scenario if it occurs. I came across a great example here (great step-by-step instructions).

To sum up:

  1. Shutdown your instance
  2. Create an AMI
  3. Launch an instance from an AMI where you can create/choose a private key
  4. Re-associate an EIPs
  5. Terminate the old instance

Such a convenient approach to what could otherwise be a very frustrating situation. I’ll be following kirillplatonov.com for more useful tips!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s