# hkb-events-forwarder

EventBridge forwarder (DQ-79). Puts the security events these rules match onto the central bus in Security, and nothing else.

- **Lives in:** [Log Archive](/architecture/log-archive/), [Security](/architecture/security/), [Shared Services](/architecture/shared-services/), [Prod](/architecture/prod/), [Dev](/architecture/dev/), [Sandbox](/architecture/sandbox/). **Trusted by:** `events.amazonaws.com`.
- **Boundary:** `hkb-pipeline-boundary`.
- **Reach:** 1 named action across 1 service (events); 0 statements on all resources.
- **Source:** `baseline/hkb-baseline-events.yaml`, resource `ForwarderRole`.

## Trust policy

```yaml
AssumeRolePolicyDocument:
  Version: "2012-10-17"
  Statement:
    - Effect: Allow
      Principal:
        Service: events.amazonaws.com
      Action: sts:AssumeRole
      Condition:
        StringEquals:
          aws:SourceAccount: !Ref AWS::AccountId
```

## Permissions

```yaml
Policies:
  - PolicyName: hkb-events-forwarder
    PolicyDocument:
      Version: "2012-10-17"
      Statement:
        - Sid: PutOnTheCentralBus
          Effect: Allow
          Action: events:PutEvents
          Resource: !Sub arn:${AWS::Partition}:events:us-east-1:${SecurityAccountId}:event-bus/hkb-security-events
```
