You are viewing the documentation of TeamCity 2018.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.


Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


It is assumed that the machine images are pre-configured to start TeamCity agent on boot (see details below). The exception is the usage of agent push.


On instance terminating/stopping, its disconnected agent is removed from authorized agents list and is deleted from the system.

Amazon EC2 Spot Instances are supported.



  • ec2:Describe*
  • ec2:StartInstances
  • ec2:StopInstances
  • ec2:TerminateInstances
  • ec2:RebootInstances
  • ec2:RunInstances
  • ec2:ModifyInstanceAttribute

  • ec2:*Tags


To use spot instances, the following additional permissions are required:

  • ec2:RequestSpotInstances
  • ec2:CancelSpotInstanceRequests

To launch an instance with the Iam Role (applicable to instances cloned from AMI-s only), the following additional permissions are required:


Optional permissions

See the section below for permissions to set IAM roles on an agent instance.