templates/org-management-us-east-1.yaml [24:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          ROLE_NAME: !Ref OrganizationAccountAccessRoleName
      Policies:
      - Version: 2012-10-17
        Statement:
        - Sid: AllowStsAssumeRole
          Effect: Allow
          Action:
          - sts:AssumeRole
          Resource:
          - !Sub 'arn:aws:iam::*:role/${OrganizationAccountAccessRoleName}'
      Events:
        CreateAccount:
          Type: EventBridgeRule
          Properties:
            RetryPolicy:
              MaximumEventAgeInSeconds: 60
              MaximumRetryAttempts: 5
            Pattern:
              source:
              - "aws.organizations"
              detail-type:
              - "AWS Service Event via CloudTrail"
              detail:
                awsRegion:
                - "us-east-1"
                eventSource:
                - organizations.amazonaws.com
                eventName:
                - CreateAccountResult
                serviceEventDetails:
                  createAccountStatus:
                    state:
                    - "SUCCEEDED"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/org-management-us-east-1.yaml [68:100]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          ROLE_NAME: !Ref OrganizationAccountAccessRoleName
      Policies:
      - Version: 2012-10-17
        Statement:
        - Sid: AllowStsAssumeRole
          Effect: Allow
          Action:
          - sts:AssumeRole
          Resource:
          - !Sub 'arn:aws:iam::*:role/${OrganizationAccountAccessRoleName}'
      Events:
        CreateAccount:
          Type: EventBridgeRule
          Properties:
            RetryPolicy:
              MaximumEventAgeInSeconds: 60
              MaximumRetryAttempts: 5
            Pattern:
              source:
              - "aws.organizations"
              detail-type:
              - "AWS Service Event via CloudTrail"
              detail:
                awsRegion:
                - "us-east-1"
                eventSource:
                - organizations.amazonaws.com
                eventName:
                - CreateAccountResult
                serviceEventDetails:
                  createAccountStatus:
                    state:
                    - "SUCCEEDED"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



