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

Each ec2 instance that launched in amazon has the same software but I need to change the file /home/project/config.json for each. What is the easiest way to do this?

I need it done automatically.Thanks

share|improve this question

closed as not a real question by Jenny D, Dave M, Magellan, voretaq7 Apr 18 '13 at 16:31

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

You can create your own custom AMIs to launch an instance that is configured any way you like.

  • Launch one of the standard AMIs to serve as a base.
  • Make whatever changes you want to that instance (in this case, add the file).
  • Right click on the running server in the AWS Console.
  • Choose 'Create Image (EBS AMI)'
  • If you don't want the instance to be stopped then check 'No Reboot'. It's better to leave it unchecked if you can and allow it to reboot. This ensures file system integrity is maintained.

In a few minutes a new AMI will be created that you can launch instances with all the changes you made baked in.

share|improve this answer

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