I've been struggling with AWS private keys as I try to keep all of my AWS credentials safe, secure, and organised. Should I be using the same AWS key for multiple EC2 instances or should each instance have its unique private key?

I've been looking around for a best practice regarding this. If you can explain why in addition, I'd appreciate it very much.

I've been leaning towards the practice of giving each instance its unique private key to compartmentalise security.

Thanks in advance!

link|improve this question
feedback

migrated from stackoverflow.com Jun 6 '11 at 7:22

This question came from our site for professional and enthusiast programmers.

1 Answer

I think this question might fit better for serverfault.com.

That said: If you work alone on the instances I do not see any point in creating a keypair per instance. I think the keypair should be per user.

If multible users should access the machines I would add a new keypair on the ec2 instance as described here: https://forums.aws.amazon.com/message.jspa?messageID=185184 and a bit more elaborate on the keypair generation process here: http://seabourneinc.com/2011/01/19/change-key-pairs-on-aws-ec2-instance/

link|improve this answer
Thanks a lot for the reference. Been trying to figure out the best way to compartmentalise security without hindering usability. This helps a lot! – Avc1298 Jun 6 '11 at 1:13
feedback

Your Answer

 
or
required, but never shown