Recently, I’ve been playing around with AWS – here are a couple of tips/tricks I found when I had to fix some problems. Hopefully they can help, but: your mileage may vary!
Problem: you didn’t specify
nobootwait as an option in fstab, and you detached the volume from an instance, BUT you still want to get back into that instance.
mkdir -p /media/tmpmnt/ && mount /dev/xdvf /media/tmpmnt/
sudo vim /media/tmpmount/etc/fstab) by commenting out, deleting, or modifying the offending line
Problem: you want to switch the ‘Automatically assign Public IP’ option for an instance… but you can’t do this because it’s already created.
Basically, you need to detach the root volume on the old instance, create a new instance, detach the root volume on the new instance, attach the old root instance to the new instance as the root volume, then delete the new instances detached root volume.
After you do that, you boot up the new instance and test it out, then delete the old instance as well.