Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We're looking to put an image on AWS Marketplace. The image is to include a password-based web user interface. What is the correct way to set that password?

Some options come to mind:

  1. Set the password to a known value. Require a password change on first login. Hope that the end user does not leave it running unattended with the default password.

  2. Set the password to a random value. Communicate it to the end user somehow. If so, how do we communicate it to the end user? Is it possible to find out the account owner's email through an API from a running EC2 instance?

  3. Create a bootstrap web application that will authenticate the user by requiring them to provide their EC2 security credentials and then let them specify a password for the actual web application.

  4. If there's a way to take user input before instance provisioning, then obviously we can just prompt for a new password. Is there any way to prompt for user input when provisioning an image from AWS marketplace on EC2?

I apologize for the obvious security holes in the above.

Are any of the above options the right option? Is there a recommended approach? What is the least insecure way to do this?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.