Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

I would like to use another AMI with juju instead of the default AMI, where do I specify this?

share|improve this question

This used to be supported in ~/.juju/environments.yaml as default-image-id in older versions of Juju but is currently unimplemented in Juju 2.x.

According to this thread it just needs to be implemented:

share|improve this answer
This answer is out-of-date now and refers to the Python version of juju, which is not supported anymore. juju-core (the Go version) supports an "instance-type" constraint (run juju help constraints for more info) to select e.g. "m1.small", but specifying an AMI to use is not supported. – dimitern Oct 14 '14 at 7:12

If the image id is absolutely necessary for you, then this how you can get it working in precise.

Create a directory of your choice. cd into it and run:

bzr branch lp:juju/0.5

However before you can run from source, you need to make sure you have the dependencies installed.

sudo apt-get install python-zookeeper python-virtualenv python-yaml

Next cd into the 0.5 directory and run bzr revert -r479

Now run python develop inside the directory. Juju works great :)

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.