Evaluate organization-wide AWS Database Savings Plan recommendations and identify the member accounts most responsible for the eligible database usage behind them. This plan collects the exact provider recommendation, ranks accounts using Database-Savings-Plan-eligible spend rather than total database spend, and produces a bounded account list plus machine-readable recommendation context for downstream commitment-fit analysis.
Collect the organization Database Savings Plan recommendation
Retrieves the current DATABASE_SP recommendation at payer scope, including its provider identifier, hourly commitment, term, payment option, lookback, estimated savings, and utilization.
Rank accounts by eligible database usage
Uses Cost Explorer usage type and operation dimensions to isolate eligible database usage across supported services and ranks member accounts over the recommendation-aligned window.
Map accounts to the recommendation
Identifies the bounded set of accounts responsible for approximately 80% of eligible database spend and preserves the full ordered list for downstream execution.