Skip to content

Commit

Permalink
Merge pull request #1088 from fd-jonathanlinn/feat/parameterise-ec2-i…
Browse files Browse the repository at this point in the history
…nstance-name

Add InstanceName parameter
  • Loading branch information
moskyb authored Feb 1, 2023
2 parents 25c1daa + d3b076b commit c05953f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion templates/aws-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Metadata:
- InstanceRolePermissionsBoundaryARN
- IMDSv2Tokens
- EnableDetailedMonitoring
- InstanceName

- Label:
default: Auto-scaling Configuration
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c05953f

Please sign in to comment.