We're heavily using the brilliant EC2 cloud integration. We have a setup where we spawn an entire cloud based environment (database, two IIS web nodes, load balancer, etc) which automated tests run on, and it all works a treat.
The problem we have is speed. An entire environment setup takes around 20 minutes. In order to cut down the time, I'd like to start setting up an environment as soon as TeamCity spawns a new cloud agent, and to shut down the environment when the TeamCity cloud agent is shutdown after the defined inactivity period.
Is there a way to hook on to cloud agent events to attach scripts? If not, would this feature be considered?