Notifications
Guardrails provides two distinct capabilities for getting event data out of your workspace: Notifications and Firehose. They serve different purposes and are configured independently.
Notifications
Notifications send real-time alerts to people and channels when events occur in your cloud infrastructure: control state changes, enforcement actions, policy violations, and more. They're designed for human consumption: formatted messages delivered to email inboxes, Slack channels, and Microsoft Teams.
Use Notifications when you want to:
- Alert the account team when a control goes into alarm.
- Notify a Slack channel when Guardrails takes an enforcement action.
- Send an email when a security group is modified.
- Route alerts dynamically to the right people based on their Guardrails permissions.
Delivery channels: Email, Slack, Microsoft Teams, custom HTTPS webhooks.
Configuration: Entirely through Guardrails policies (Turbot > Notifications). No AWS infrastructure required.
| Guide | Description |
|---|---|
| Configure Notifications | Enable notifications, set up delivery channels, and configure routing. |
| Filter Rules | Write rules to control which events trigger notifications and where they go. |
| Templates | Customize the format of notification messages for each delivery channel. |
Firehose
The Firehose generates an event stream of notifications sent to an AWS SNS topic. It's designed for machine consumption: raw JSON events delivered to a topic where downstream systems can subscribe, filter, and process them.
Use Firehose when you want to:
- Feed Guardrails events into downstream systems (data lakes, log analytics, monitoring tools, etc.).
- Build a custom notification pipeline with queuing, time delays, and validation.
- Route events to a data lake, ticketing system, or BI dashboard.
- Get raw event data for correlation and analysis across multiple systems.
Delivery: AWS SNS topic with optional notification templates.
Configuration: Requires the firehose-aws-sns mod, an AWS SNS topic, an IAM user, and watches configured via GraphQL or Terraform.
| Guide | Description |
|---|---|
| Set Up Firehose | Configure the Firehose mod, AWS resources, and watches to stream events to SNS. |
| Build Notification Pipelines | Design and build downstream notification pipelines that consume Firehose events. |
Choosing Between Notifications and Firehose
| Notifications | Firehose | |
|---|---|---|
| Audience | People (teams, admins, operators) | Systems (pipelines, data lakes, monitoring tools) |
| Format | Formatted messages (HTML email, Slack blocks, Teams cards) | Raw JSON event data |
| Delivery | Email, Slack, Teams, webhooks | AWS SNS topic |
| Configuration | Policy settings only | Mod + AWS infrastructure + watches |
| Filtering | Rule-based routing with NOTIFY/IGNORE syntax | Watch filters with notification type pivots |
| Customization | Nunjucks templates per channel | Notification templates per event type |
| Setup complexity | Low: enable policy and add rules | Higher: requires SNS topic, IAM user, watches |
You can use both together. A common pattern is to use Notifications for human alerts (Slack, email) while simultaneously streaming all events through Firehose to downstream systems for audit and correlation.