Built originally for node-ectwo
### ### : # find a region, and return it ### ### : # create, and return instance ### ### : # migrate to a new region, and return the image ### ### : # stop the instance ### ### : #start the instanc
Ironify:
irons = require"irons"ectwo = require"ectwo" ironsadd"instances" "findOne": "instance"add"instance" "shutdown": type: "image" "createImage": "image"add"image" "migrate": "image" "createInstance": "instance" ironswrapectwoinstances"instances" # shutdown one instance, migrate it to a new region, and start it up again. proc = ectwo instances findOne tags: type: "mongodb" shutdown migrate region: ectworegionsfindOne name: /us-*/ createInstance start