feat: personalization layer (Usage Analysis + My Stuff) — v1.1.0#25
Merged
Conversation
Adds an opt-in personalization layer on top of the base Capability Insights dashboard. When enabled, the dashboard offers a "My stuff" toggle that filters services, APIs, and CloudFormation resources to only what's actually used in your account. The personalization is produced by a new opt-in CloudFormation stack (CapabilityInsightsUsageAnalysis) that adds: - A Step Functions state machine that orchestrates two analyzers in parallel and a decorator step - CloudTrail Analyzer Lambda (Athena queries over CloudTrail logs) - CloudFormation Analyzer Lambda (active CloudFormation stacks) - Usage Decorator Lambda that joins analyzer output with the master catalog and writes personalized data files to the website bucket - Glue database/table + Lake Formation permissions, with a Lake Formation Data Lake Admin bootstrap custom resource so the stack provisions cleanly on a fresh account - EventBridge rule for daily scheduled runs (configurable) Deploy with `npm run deploy -- --enable-usage-analysis`. The CloudTrail bucket is auto-discovered from the account's configured trails; pass `--cloudtrail-bucket <name>` to override. The Settings page gains a "Run usage analysis" button that triggers analysis on demand and polls for completion. The Capability by Region page gains a "My stuff" toggle in the page header and a Stack filter on the CloudFormation tab for active resource types.
031d795 to
d332a7f
Compare
almog-co
approved these changes
Jun 2, 2026
kz014640
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v1.1.0 — Personalization layer
Adds an opt-in personalization layer on top of the base dashboard. When enabled, the dashboard offers a My stuff toggle that filters services, APIs, and CloudFormation resources to only what's actually used in your account.
What's new
--enable-usage-analysis): a new opt-in CloudFormation stack with a Step Functions state machine that orchestrates two analyzers (CloudTrail + CloudFormation) and a decorator. Output is written back to the website bucket as personalized data files.describe-trailsif--cloudtrail-bucketis omitted.Architecture
Versions
package.json(root +source/constructs,source/lambda,source/shared) bumped to1.1.0.Testing