From d3b076b5d46c35b848d974c022a6c0ab93dfb32c Mon Sep 17 00:00:00 2001 From: fd-jonathanlinn Date: Mon, 30 Jan 2023 11:35:32 +0000 Subject: [PATCH] Add InstanceName parameter --- templates/aws-stack.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/aws-stack.yml b/templates/aws-stack.yml index 6a4513490..e8371706b 100644 --- a/templates/aws-stack.yml +++ b/templates/aws-stack.yml @@ -83,6 +83,7 @@ Metadata: - InstanceRolePermissionsBoundaryARN - IMDSv2Tokens - EnableDetailedMonitoring + - InstanceName - Label: default: Auto-scaling Configuration @@ -489,6 +490,11 @@ Parameters: - "false" Default: "false" + InstanceName: + Type: String + Description: Optional - Customise the EC2 instance Name tag + Default: "buildkite-agent" + Rules: HasToken: Assertions: @@ -1061,7 +1067,7 @@ Resources: - Key: Role Value: buildkite-agent - Key: Name - Value: buildkite-agent + Value: !Ref InstanceName - Key: BuildkiteAgentRelease Value: !Ref BuildkiteAgentRelease - Key: BuildkiteQueue