3 ms·
Sure: 1) Create the instance the first time: https://gist.github.com/rahimnathwani/40ed3b6f496d377e3d17de4a82393520 https://gist.github.com/rahimnathwani/40ed3
by rahimnathwani 10y ago
Sure:
1) Create the instance the first time: https://gist.github.com/rahimnathwani/40ed3b6f496d377e3d17de4a82393520 https://gist.github.com/rahimnathwani/40ed3b6f496d377e3d17de...
2) SSH into the instance and run this script (replace anaconda mirror if your instance isn't in Asia, and definitely set the password hash): https://gist.github.com/rahimnathwani/b63ebc5900b832743d9e22324543c04f https://gist.github.com/rahimnathwani/b63ebc5900b832743d9e22...
3) After you've tested the server, snapshot the disk (using the web console) and destroy the instance and the persistent disk.
4) Run this script to recreate the instance and disk from the snapshot (replace with your snapshot name): https://gist.github.com/rahimnathwani/9019df33d4ad7ec4607413fd0a29c207 https://gist.github.com/rahimnathwani/9019df33d4ad7ec4607413...