ec2-run-instances $AMI_ID -n 1 -g $SECURITY_GROUP -k $PEM_NAME -f myFile -t m1.large --availability-zone us-east-1a --monitor -K $EC2_PRIVATE_KEY -C $EC2_CERT
Is what creates the instance.
myFile has chmod a+x permissions:
#!/bin/bash -ex
sudo mkdir /home/ubuntu/thisactuallyworked
This seems like it should work. I also tried replacing -f with --user-data-file, but it still hangs the box. I'm using a > 10.04 Ubuntu AMI, and all examples point to this working. What gives?!