I have successfully made an AMI and able to launch instances from this image from my AWS account successfully. However, as soon as I try to launch an instance from this AMI from some other AWS account specifying keypair other than whats in the AMI authorized_keys already, it doesn't let me login to instance with the new keypair(for obvious reasons). I am assuming that i need to implement some sort of mechanism to download the custom keypair specified in the instance creation wizard of Amazon AWS into the authorized_keys of the newly created instance.
Looking for hints on how this can be achieved !!
Thanks.