From 779053d91002420ff200a08adbec1a596f5d7cf5 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Mon, 2 Dec 2024 11:50:57 +0100 Subject: [PATCH] cloud/awscloud: give secure instances a name That way you can just enter the parent instance id into the search bar and get both the worker and its executor. --- internal/cloud/awscloud/secure-instance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/cloud/awscloud/secure-instance.go b/internal/cloud/awscloud/secure-instance.go index afa03a2972..aed2a72e0b 100644 --- a/internal/cloud/awscloud/secure-instance.go +++ b/internal/cloud/awscloud/secure-instance.go @@ -154,6 +154,10 @@ func (a *AWS) RunSecureInstance(iamProfile, keyName, cloudWatchGroup, hostname s Key: aws.String("parent"), Value: aws.String(identity.InstanceID), }, + ec2types.Tag{ + Key: aws.String("Name"), + Value: aws.String(fmt.Sprintf("Executor-for-%s", identity.InstanceID)), + }, }, }, },