Cloud profile - Instance IDs rather than AMI IDs?

I was wondering if its possible to choose an Instance ID for the cloud profile rather than an AMI ID? It would be nice to have 20-30 stopped ec2 instances and have teamcity start these preconfigured ones up when needed much like it would do with an AMI. Is this possible?

Thanks,
- Josh

4 comments
Comment actions Permalink

Josh,

To you mean EBS based images? For now, TeamCity does not support shudown of such images, so it terminates all images it use.
Please vote for http://youtrack.jetbrains.net/issue/TW-16419 and add you setup-specific details there.

0
Comment actions Permalink

Hi Eugene,
I'm a bit confused by this. Are windows instances not supported at all in ec2? All windows instances on ec2 that I could find are EBS based volumes.

Thanks,
- Josh

0
Comment actions Permalink

There are two kinds of instances in Amazon EC2. First kind are instances that does not persist it's state. Second are the isntances with persisted state.
Instances are started on Amazon EC2 from a given AMI ID.

The difference between those instance is that the system partition is placed on EBS or not (in that case poweroff will revert all changes). Of course you can mount mode EBS drives to your machine.

Please describe what you meant in your initial post?

0
Comment actions Permalink

Josh,

You may do the following workaround:
- create/select 20-30 instances you want TeamCity to use
- create a snapshot and image from each
- specify images in the list of images in TeamCity.

To make things easy, you may consider to use Amazon EC2 API to automate
the process of image creation.

Please note, TeamCity will need to run each image once to capture agent
properties that are required to further work.

One more question for you: Do you also like to have an option to make TeamCity
start EC2 machine from _image_ and than start or stop instances?
For example, if there is a lack of stopped EC2 instances, TeamCity may start
new one from image and than start/stop it.

0

Please sign in to leave a comment.