AWSTemplateFormatVersion: '2010-09-09' Description: (AWS Heidi) Eventbus stack to enable link account to send data to central bus Parameters: POrgID: Type: String Description: The AWS Organizations ID for the organization that should be allowed to put events on the event bus. Resources: EventHealthBusPolicy: Type: AWS::Events::EventBusPolicy Properties: EventBusName: default StatementId: AllowAllAccountsFromOrganizationToPutEvents Statement: Effect: "Allow" Principal: "*" Action: "events:PutEvents" Resource: !Sub "arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:event-bus/default" Condition: StringEquals: aws:PrincipalOrgID: !Ref POrgID Outputs: EventHealthBusArn: Value: !Sub "arn:${AWS::Partition}:events:${AWS::Region}:${AWS::AccountId}:event-bus/default" Export: Name: EventHealthBusArn