# Pipeline filters for EventBridge notifications

**URL:** <https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548>\
**Category:** Features Requests\
**Created:** [April 29, 2021, 8:25pm UTC](https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548 "2021-04-29T20:25:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moensch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/moensch/32/33_2.png) [@moensch](https://forum.buildkite.community/u/moensch)\
**Post date:** [April 29, 2021, 8:25pm UTC](https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548/1 "2021-04-29T20:25:58Z")

</div>

I’d love to be able to filter pipelines in EventBridge notifications (same as we can for Slack). So select “only pipelines in teams…” or simply specific timelines.

There’d be other filters that might be useful, but those are more do-able in EventBridge rules themselves.

Though if I had a wish free, I would love to have a similar filter syntax available on Buildkite as I have on the AWS side. So that for example I can only send `Job Scheduled` events with specific `agent_query_rules`.

---

<div class="post-metadata">

**Author:** ![sj26](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/sj26/32/17_2.png) [@sj26](https://forum.buildkite.community/u/sj26)\
**Post date:** [April 30, 2021, 12:57am UTC](https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548/2 "2021-04-30T00:57:59Z")

</div>

Good suggestion, @moensch! We deferred adding more complex filtering to EventBridge because those filters can be added on the EventBridge side. But perhaps adding some more filters would be nice. I can’t promise when we’ll get to it, but we’d like to.

---

<div class="post-metadata">

**Author:** ![moensch](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/moensch/32/33_2.png) [@moensch](https://forum.buildkite.community/u/moensch)\
**Post date:** [April 30, 2021, 1:39am UTC](https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548/3 "2021-04-30T01:39:02Z")

</div>

Yeah - many things can be filtered at the EventBridge side, but not all of them.

For example, the pipeline teams aren’t part of the event data.

There’s a minor RBAC-y type issue here. In a situation where different teams own different AWS accounts, I wouldn’t want to send events for pipelines for teamA to an AWS account owned and operated by teamB.

---

<div class="post-metadata">

**Author:** ![sj26](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/sj26/32/17_2.png) [@sj26](https://forum.buildkite.community/u/sj26)\
**Post date:** [April 30, 2021, 3:57am UTC](https://forum.buildkite.community/t/pipeline-filters-for-eventbridge-notifications/1548/4 "2021-04-30T03:57:41Z")

</div>

Right, RBAC is a good reason to do filtering on our side for sure. 👍

I wonder if we should also be including the pipeline teams in the events, too. It might be tricky to do well without information disclosure.
