In Flashduty On-call
Get an integration push URL in either of the two ways below. Choose the AWS EventBridge integration type in both, not AWS Security Hub.Use a dedicated integration
- In the Flashduty console, go to Channels and open a channel
- Go to Settings → Integrations → Dedicated integrations and click Add integration
- Select AWS EventBridge and click Save
- Open the generated integration card and copy the Push URL, in the form
https://api.flashcat.cloud/event/push/alert/aws/eventbridge?integration_key=<integration key>
Use a shared integration
- In the Flashduty console, go to Integration Center → Alert Events
- Select AWS EventBridge and enter an integration name
- Configure the default route and select a channel. You can add more rules under Routing after creation
- Click Save and copy the generated Push URL
Configure in AWS
1
Create an API destination that points to Flashduty in Amazon EventBridge
- API destination (recommended)
- SNS topic
Where: Amazon EventBridge › Integration › API destinations › Connections › Create connection
Click Create to save.Where: Amazon EventBridge › Integration › API destinations › Create API destination
Click Create to save.
2
Create a rule for Security Hub events in Amazon EventBridge
Where: Amazon EventBridge › Rules › Create rule › Advanced BuilderPaste the JSON pattern below; the optional Event pattern form opens it in the Pattern Builder.To receive only some findings, filter on finding attributes under Create the rule in every Region where Security Hub is enabled. Security Hub Findings - Custom Action events, sent by custom actions, also carry findings and are handled the same way; add that
Event pattern:
detail.findings. For example, only findings produced by Amazon Inspector:detail-type to the rule if you use them.3
Send a test Security Hub event and confirm
Where: A terminal that can reach the Flashduty push URLThe rule only forwards events that AWS really emits. To verify right away, POST a test event shaped like the real one to the push URL:Send it again with
Workflow.Status set to RESOLVED to confirm that the alert recovers automatically. A few seconds later, go back to Flashduty. The integration shows a latest event time, which means the setup works.Field mapping
Thedetail.findings array of a Security Hub Findings - Imported event holds a single finding. The mapping below is how Flashduty processes these AWS EventBridge events:
Recovery and deduplication
- Setting a finding’s workflow status to Resolved or Suppressed, or archiving the finding, produces a new Security Hub Findings - Imported event. Flashduty then closes the alert with the same Alert Key.
- When an event contains several findings, each finding becomes its own alert.
- If an event lacks
IdorProductArn, Flashduty returns HTTP 400.
Troubleshooting
- The API destination call fails: confirm the endpoint is the full push URL including
integration_keyand thatHTTP methodisPOST - Alerts do not recover: check whether the rule’s event pattern filters on
Workflow.StatusorRecordState, and whether the target has an Input transformer (the full event must be sent) - Findings from a Region are missing: an EventBridge rule only applies in its own Region; create a rule in every Region where Security Hub is enabled