オートスケールできる環境ならそっちからやったほうがいいですが、 常時起動しないテスト環境とかはcronでやってしまうと便利です。
test-start.sh
---
#!/bin/sh
testId={ami-id}
ec2-start-instances ${testId}
---
test-stop.sh
---
#!/bin/sh
testId={ami-id}
ec2-stop-instances ${testId}
---
cron
00 8 * * * source /root/.bash_profile;/root/scripts/test-start.sh 00 17 * * * source /root/.bash_profile;/root/scripts/test-stop.sh


