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

문제

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?

도움이 되었습니까?

해결책

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

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top