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

Is there a way to hook into the first-boot process of a new Windows Amazon EC2 instance to run initialization scripts? We would like to automate the setup of our instances without resorting to creating our own custom AMIs.

The Amazon Linux AMI's have CloudInit to make this easier. Is there an equivalent for Windows?

share|improve this question

I know I tried looking for one for awhile. Then I finally decided to create my own open source one for everyone else to use.

share|improve this answer

I havent found one yet, but the way i was looking at this was to instance data option. The plan, which has not yet been put to the test, was as follows:

  • build a basic Windows Image (ok, i know you mentioned you didn't want to do this, but this is the best option i can think of).
  • the image should only have a basic Windows service which calls out to the instance data URL ( this should be in a format that the service knows about (XML is probably best). the data should point to URLs to exes, msis, etc, that you want to install.

This is the only option, other than creating your own fully custom AMI, i can think of. you might not get it to install SQL server (though, unattended install might be an option...) but installing basic tools, IIS, etc, could be easy enough to do.

Hope this helps.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.