I've recently setup a Team City Cloud Agent on AWS EC2 for testing purposes. Everything is working great and the TeamCity server sees the new build server being spun up and pushes queues to them. However, I am having an issue when it comes to getting the new instances tagged upon creation. I created a couple of self-defined tags like Name, Domain, Owner, etc. I added those tags to the AMI that it's creating the build servers from and I have also given the ec2:*Tags permission to the AWS Policy. For some reason it's not tagging the servers upon creation, it just leaves everything blank. Is there something that I may not have configured or is this a functionality that it doesn't offer?
Also, is it possible to make the teamcity server assign a specific name to the build servers, like buildserver1, buildserver2 and so on?
Here is the policy I am applying on the TeamCity Cloud
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1469049271000",
"Effect": "Allow",
"Action": [
"ec2:Describe*",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:TerminateInstances",
"ec2:RebootInstances",
"ec2:RunInstances",
"ec2:ModifyInstanceAttribute",
"ec2:*Tags"
],
"Resource": [
"*"
]
}
]
}
Thanks!