Add tag metadata to the instances.

This commit is contained in:
Jake Moshenko 2014-12-16 15:17:39 -05:00
parent 1d68594dc2
commit a280bbcb6d

View file

@ -118,7 +118,13 @@ class EC2Executor(BuilderExecutor):
elif len(reservation.instances) != 1:
raise ExecutorException('EC2 started wrong number of instances!')
return reservation.instances[0].id
launched = reservation.instances[0]
launched.add_tags({
'Name': 'Quay Ephemeral Builder',
'Realm': realm,
'Token': token,
})
return launched.id
def stop_builder(self, builder_id):
ec2_conn = self._get_conn()