@@ -261,7 +261,7 @@ Resources:
261261 Action :
262262 - " events:InvokeApiDestination"
263263 Resource :
264- - !Sub " arn:aws :events:*:*:api-destination/sysdig-secure-events-${NameSuffix}-destination/*"
264+ - !Sub " arn:${Partition} :events:*:*:api-destination/sysdig-secure-events-${NameSuffix}-destination/*"
265265 - Effect : Allow
266266 Action :
267267 - " events:DescribeRule"
@@ -374,13 +374,13 @@ Resources:
374374 Type: AWS::Events::Rule
375375 Properties:
376376 Name: !Sub ${Name}
377- Description: Capture all CloudTrail events
378- EventPattern: !Ref EventBridgeEventPattern
379- State: !Ref EventBridgeState
377+ Description: Forwards events to Sysdig via API Destination
378+ EventPattern: !Ref RuleEventPattern
379+ State: !Ref RuleState
380380 Targets:
381381 - Id: !Sub ${Name}
382382 Arn: !GetAtt EventBridgeApiDestination.Arn
383- RoleArn: !Sub "arn:aws :iam::${AWS::AccountId}:role/${Name}"
383+ RoleArn: !Sub "arn:${Partition} :iam::${AWS::AccountId}:role/${Name}"
384384 OrganizationRoleStackSet :
385385 Type : AWS::CloudFormation::StackSet
386386 Condition : IsOrganizational
@@ -495,14 +495,14 @@ Resources:
495495 Action:
496496 - "events:InvokeApiDestination"
497497 Resource:
498- - !Sub "arn:aws :events:*:*:api-destination/${EventBridgeRoleName }-destination/*"
498+ - !Sub "arn:${Partition} :events:*:*:api-destination/${Name }-destination/*"
499499 - Sid: "CloudTrailEventRuleAccess"
500500 Effect: Allow
501501 Action:
502502 - "events:DescribeRule"
503503 - "events:ListTargetsByRule"
504504 Resource:
505- - !Sub "arn:aws :events:*:*:rule/${EventBridgeRoleName }"
505+ - !Sub "arn:${Partition} :events:*:*:rule/${Name }"
506506 - Sid: "ValidationAccess"
507507 Effect: Allow
508508 Action:
@@ -627,15 +627,15 @@ Resources:
627627 Type: AWS::Events::Rule
628628 Properties:
629629 Name: !Ref Name
630- Description: Capture all CloudTrail events for Sysdig Secure
631- EventPattern: !Ref EventBridgeEventPattern
632- State: !Ref EventBridgeState
630+ Description: Forwards events to Sysdig via API Destination for Sysdig Secure
631+ EventPattern: !Ref RuleEventPattern
632+ State: !Ref RuleState
633633 Targets:
634634 - Id: !Ref Name
635635 Arn: !GetAtt EventBridgeApiDestination.Arn
636- RoleArn: !Sub "arn:aws :iam::${AWS::AccountId}:role/${Name}"
636+ RoleArn: !Sub "arn:${Partition} :iam::${AWS::AccountId}:role/${Name}"
637637Outputs :
638638 EventBridgeRoleARN :
639639 Description : Sysdig Secure EventBridge Role ARN
640640 Value :
641- Fn::Sub : ${EventBridgeRole.Arn}
641+ Fn::Sub : ${EventBridgeRole.Arn}
0 commit comments