@@ -11,6 +11,10 @@ Conditions:
1111 CreateAppVolume : !Equals
1212 - !Ref AppVolumeDevice
1313 - ' true'
14+ CreatePatchGroupTag : !Not
15+ - !Equals
16+ - !Ref PatchGroup
17+ - ' '
1418 ExecuteAppScript : !Not
1519 - !Equals
1620 - !Ref AppScriptUrl
@@ -133,6 +137,7 @@ Metadata:
133137 - NoPublicIp
134138 - NoReboot
135139 - NoUpdates
140+ - PatchGroup
136141 - SecurityGroupIds
137142 - Label :
138143 default : EC2 Watchmaker Configuration
@@ -185,7 +190,7 @@ Metadata:
185190 default : Force Cfn Init Update
186191 ToggleNewInstances :
187192 default : Force New Instances
188- Version : 1.7 .0
193+ Version : 1.8 .0
189194Outputs :
190195 ScaleDownScheduledAction :
191196 Condition : UseScheduledAction
@@ -376,6 +381,12 @@ Parameters:
376381 Controls whether to run yum update during a stack update (on the initial
377382 instance launch, Watchmaker _always_ installs updates)
378383 Type : String
384+ PatchGroup :
385+ Default : ' '
386+ Description : >-
387+ (Optional) Key value of the Patch Group tag. Controls whether to create a PatchGroup
388+ tag that can be leveraged via SSM to auto-update instances.
389+ Type : String
379390 PypiIndexUrl :
380391 AllowedPattern : ' ^http[s]?://.*$'
381392 Default : ' https://pypi.org/simple'
@@ -499,9 +510,15 @@ Resources:
499510 MinSize : !Ref MinCapacity
500511 Tags :
501512 - Key : Name
513+ Value : !Sub '${AWS::StackName}'
502514 PropagateAtLaunch : true
503- Value :
504- !Sub '${AWS::StackName}'
515+ - !If
516+ - CreatePatchGroupTag
517+ -
518+ Key : Patch Group
519+ Value : !Ref PatchGroup
520+ PropagateAtLaunch : true
521+ - !Ref ' AWS::NoValue'
505522 TargetGroupARNs : !If
506523 - UseTargetGroupArns
507524 - !Ref TargetGroupArns
0 commit comments