npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@aws-mdaa/eventbridge-constructs

v1.8.0

Published

MDAA CloudWatch Constructs

Readme

Construct Overview

Opinionated implementation of the Layer 2 CDK Construct for EventBridge.

Security/Compliance

EventBridge Event Bus

  • Enforce Event Bus Name

EventBridge Rule

  • Enforce Rule Name
  • Publish Rule Name/ARN to SSM Parameter Store for cross-module reference

Note an EventBridge rule holds no data at rest, so there is no encryption surface to enforce on the rule itself. Compliance for what a rule targets (for example an encrypted SNS topic) belongs to those resources.

CloudTrail Alert Rules

  • createCloudTrailAlertRules (lib/cloudtrail-alert-rules) builds MdaaRules that alert on a resource's CloudTrail events, notifying an SNS topic and optionally a customer-supplied remediation Lambda. Service-agnostic: the caller supplies the CloudTrail sources, the resource identity fields, and the per-rule errorCodes/eventNames.
  • Rejects at synth the misconfigurations that would otherwise deploy cleanly and never fire: a rule with neither errorCodes nor eventNames (which would match every API call), missing CloudTrail sources, and scoping that names no resource identity at all (which would match every resource of that service in the account).
  • Scopes each rule to the resource by OR-ing every identity form the service may record - detail.requestParameters.<field> and detail.resources[].ARN - because the field carrying a resource's identity differs per API, and some APIs carry no requestParameters at all.
  • Publishes via a per-rule delivery role (authorizeUsingRole), not a service-principal grant on the topic and key policies. The role's identity policy grants sns:Publish on that topic and kms:Decrypt/GenerateDataKey* on its key, and nothing else - so no statement authorizing every EventBridge rule in the account is emitted. CDK's default cannot be narrowed after the fact (grantPublish deduplicates), and a KMS resource policy cannot carry aws:SourceArn for this path at all, so an identity policy is the only scoped option. It also makes imported topics work, which a resource-policy grant could not. Tests pin that neither policy gains an events.amazonaws.com statement.
  • The delivery role's policy is inline and includes the kms:GenerateDataKey* action family, so it carries IAMNoInlinePolicy and AwsSolutions-IAM5 nag suppressions - same reasoning as the EventBridge target role in dataops-stepfunction.

Requires a CloudTrail trail in the account/region logging the matched events. Management events are logged by default on any trail; data events are off by default and must be enabled explicitly. Without a trail covering the matched events, a rule never fires.