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/audit

v1.6.0

Published

MDAA audit module

Readme

CloudTrail Audit

Note: This documentation is also available in a rendered format here.

Deploys a secure, KMS-encrypted S3 audit bucket for CloudTrail logs and S3 inventories, with Glue/Athena tables for querying audit and inventory data. Supports cross-account and cross-region log aggregation. Use this module when you need a centralized audit log repository for compliance, security investigations, or tracking data access across your AWS accounts.


Deployed Resources

This module deploys and integrates the following resources:

Audit KMS Key - Customer-managed KMS key for encrypting all audit resources at rest.

Audit S3 Bucket - S3 bucket for CloudTrail audit logs and S3 Inventory data.

Glue Database - Glue catalog database containing the audit and inventory tables.

Glue/Athena Audit Table - Athena table for querying CloudTrail data in the Audit Bucket.

Glue/Athena Inventory Table - Athena table for querying S3 Inventory data in the Audit Bucket.

Audit


Related Modules

  • Data Lake — Audit S3 Inventory data from data lake buckets can be stored and queried in the audit bucket
  • Audit Trail — Deploy a CloudTrail trail that writes audit logs to the S3 bucket and KMS key created by this module
  • Athena Workgroup — Use Athena workgroups to query CloudTrail and S3 Inventory data in the audit tables
  • Roles — Create IAM roles that can be granted read access to audit data

Security/Compliance Details

This module is designed in alignment with MDAA security/compliance principles and CDK nag rulesets. Additional review is recommended prior to production deployment, ensuring organization-specific compliance requirements are met.

  • Encryption at Rest:
    • All audit data encrypted with customer-managed KMS key
    • Read roles granted decrypt-only access via key policy
  • Least Privilege:
    • Bucket policy restricts write access to CloudTrail and S3 Inventory services
    • Read roles granted readonly access via bucket policy
    • Cross-account and cross-region source restrictions configurable

Configuration

MDAA Config

Add the following snippet to your mdaa.yaml under the modules: section of a domain/env in order to use this module:

audit: # Module Name can be customized
  module_path: '@aws-mdaa/audit' # Must match module NPM package name
  module_configs:
    - ./audit.yaml # Filename/path can be customized

Module Config Samples and Variants

Copy the contents of the relevant sample config below into the ./audit.yaml file referenced in the MDAA config snippet above.

Minimal Configuration

Deploys an S3 audit bucket with read access for a single role. All properties are optional, but at least one readRole or sourceAccount is recommended for a useful deployment. Start here for a basic audit bucket in a single-account setup.

sample-config-minimal.yaml

# Contents available via above link
--8<-- "target/docs/packages/apps/governance/audit-app/sample_configs/sample-config-minimal.yaml"

Comprehensive Configuration

Creates an S3 audit bucket that collects audit logs and S3 inventory reports from source accounts and regions, with read access via IAM roles and Athena-queryable inventory tables. Start here when evaluating all available options for cross-account log aggregation, multi-region collection, and Athena-based audit querying.

sample-config-comprehensive.yaml

# Contents available via above link
--8<-- "target/docs/packages/apps/governance/audit-app/sample_configs/sample-config-comprehensive.yaml"

Config Schema Docs