How can I prevent TeamCity Cloud Agents (running on Amzon EC2) from leaving defunct volume snapshots when they terminate?

StackOverflow https://stackoverflow.com/questions/16242184

Question

I've recently set up TeamCity to use agents running on Amazon EC2. I've been using it for a week or so and noticed my bill was racking up quite quickly. When I looked in my dashboard I had 30 or so snapshots, which I presume I'm being charged for.

TeamCity starts agents on demand and stops them when they've been idle for about an hour. At that point, the instance is deleted. I would expect the corresponding snapshot to be deleted too, but that doesn't seem to be happening, they are piling up like zombies!

When setting this up I followed Roy Osherove's guide and I tried to follow to the letter, but I'm sure I must have missed something. Does anyone know where I went wrong?

Was it helpful?

Solution

you can create a special teamcity-agent image, when add esb volume, check the "Delete on Termination" checkbox.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top