Add tag metadata to the instances.
This commit is contained in:
parent
1d68594dc2
commit
a280bbcb6d
1 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||
|
|
Reference in a new issue