File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1201,6 +1201,7 @@ Resources:
1201
1201
- " EC2 Instance-launch Lifecycle Action"
1202
1202
detail :
1203
1203
AutoScalingGroupName : [ !Ref AgentAutoScaleGroup ]
1204
+ LifecycleHookName : [ BootHook ]
1204
1205
Targets :
1205
1206
- Arn : !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT
1206
1207
RoleArn : !GetAtt EventBridgeRuleRole.Arn
@@ -1281,6 +1282,7 @@ Resources:
1281
1282
- " EC2 Instance-terminate Lifecycle Action"
1282
1283
detail :
1283
1284
AutoScalingGroupName : [ !Ref AgentAutoScaleGroup ]
1285
+ LifecycleHookName : [ ShutdownHook ]
1284
1286
Targets :
1285
1287
- Arn : !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT
1286
1288
RoleArn : !GetAtt EventBridgeRuleRole.Arn
You can’t perform that action at this time.
0 commit comments