title: How do I specify another AWS account's Event Bus as a target of an EventBridge rule using CloudFormation or CDK?
body: <p>How do I specify another AWS account's event bus as the target of a CloudWatch Rule using CloudFormation or CDK?</p>
  <p>Here is an example Rule using CDK where I try to send CodeDeploy events to another account:</p>
  <pre><code>Rule codedeployCreateDeploymentEventRule = Rule.Builder.create(this, &quot;CodedeployCreateDeploymentEventRule&quot;)
                                                     .description(&quot;CloudWatch event rule covering CodeDeploy CreateDeployment notifications.&quot;)
                                                     .ruleName(&quot;MyRule&quot;)
                                                     .enabled(true)
                                                     .targets(List.of(...something here...))
                                                     .eventPattern(EventPattern.builder()
                                                                               .source(List.of(&quot;aws.codedeploy&quot;))
                                                                               .detail(Map.of(&quot;eventName&quot;, List.of(&quot;CreateDeployment&quot;)))
                                                                               .build())
                                                     .build();
  </code></pre>
  <p>How do I specify another account's EventBus as the target? What's the syntax - is it an ARN or what?</p>