It's a fairly common thing that I want to fire up a clean EC2 instance of a particular version of Ubuntu (usually lucid or precise) and then SSH in to that instance once it's up.
I've got some Python code that I use to do it for projects (lp:pkgme-service, lp:lp-dev-utils), but I was wondering whether there's a command-line tool.
- I tried
ubuntu-ec2-run
. It doesn't use a security group that opens up SSH, so I would have to do that manually.
ubuntu-ec2-run
fires up the instance, but needs quite a lot of extra configuration to open up a port for SSH and set up a valid SSH key pair. (-gubuntu
charm is currently broken but I fetched it withbzr branch lp:charms/ubuntu
and used the local repository option to deploy it. After juju reports a successful deployment, I had to wait a while (about two minutes) before I could see a public IP injuju status
. Even then,juju ssh ubuntu
doesn't work. I had to typejuju ssh ubuntu/0
. – jml Jun 19 '12 at 13:20