Skip to content

Commit 63e9a79

Browse files
committed
Fix event pattern structure
1 parent 22fa12b commit 63e9a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/aws-stack.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ Resources:
11901190
detail-type:
11911191
- "EC2 Instance-launch Lifecycle Action"
11921192
detail:
1193-
AutoScalingGroupName: !Ref AgentAutoScaleGroup
1193+
AutoScalingGroupName: [ !Ref AgentAutoScaleGroup ]
11941194
Targets:
11951195
- Arn: !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT
11961196
RoleArn: !GetAtt EventBridgeRuleRole.Arn
@@ -1258,7 +1258,7 @@ Resources:
12581258
detail-type:
12591259
- "EC2 Instance-terminate Lifecycle Action"
12601260
detail:
1261-
AutoScalingGroupName: !Ref AgentAutoScaleGroup
1261+
AutoScalingGroupName: [ !Ref AgentAutoScaleGroup ]
12621262
Targets:
12631263
- Arn: !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT
12641264
RoleArn: !GetAtt EventBridgeRuleRole.Arn

0 commit comments

Comments
 (0)