ViduraCID Tools

Query Registry

The Vidura agent has access to 40+ pre-built Athena queries organized into 5 categories. These queries cover the full breadth of AWS Cost Intelligence Dashboard (CID) views — from high-level account summaries to granular per-resource recommendations.

Runtime Discovery

The agent uses list_cid_views() to discover available view definitions at runtime before querying. This ensures it always uses the latest view schemas without requiring code changes when CID views are updated.

Query Registry

CategoryQuery IDDescription
EC2cid_ec2_running_costEC2 running cost by instance type, purchase option, and region
EC2cid_ec2_usageEC2 usage hours by instance family and region
EC2co_ec2_rightsizingCompute Optimizer EC2 rightsizing recommendations with savings estimates
EC2co_ec2_instance_optionsAlternative instance options from Compute Optimizer for each recommendation
RDScid_rds_running_costRDS instance cost by engine, instance class, and Multi-AZ status
RDSco_rds_rightsizingCompute Optimizer RDS rightsizing recommendations
Storages3_viewS3 cost by bucket, storage class, and request type
Storageebs_viewEBS volume cost by volume type with IOPS and throughput utilization
Storagesnapshot_viewEBS snapshot inventory with age, size, and estimated deletion savings
Storagegp2_to_gp3_migrationGP2 volumes eligible for GP3 migration with savings estimate
Lambdalambda_cost_viewLambda function cost breakdown by invocation and duration billing
Lambdaco_lambda_rightsizingCompute Optimizer Lambda memory rightsizing recommendations
CUDOScudos.daily_cost_viewDaily cost breakdown by service and account
CUDOScudos.monthly_viewMonthly cost aggregation for trend analysis
KPIkpi.kpi_ri_coverageReserved Instance coverage and utilization rate
KPIkpi.kpi_sp_coverageSavings Plan coverage rate and recommendations
KPIkpi.kpi_sp_recommendationsSavings Plan purchase recommendations based on trailing 30-day usage
KPIkpi.kpi_ri_recommendationsReserved Instance purchase recommendations by instance type
Summarysummary.account_viewCost breakdown by AWS account with MTD vs. prior month comparison
Summarysummary.service_viewCost breakdown by AWS service with trend indicators

CID Tool Functions

ToolDescription
list_cid_views()Discovers all available CID Athena views at runtime. Returns view names, schemas, and descriptions. Always called first before querying.
query_cid_view(view_name, limit)Executes a SELECT query against the named CID view via boto3 Athena client. Results are returned as formatted markdown tables. Default limit: 50 rows.
query_cid_with_filter(view_name, filters)Executes a filtered query against a CID view. Filters are applied as WHERE clauses. Use for account-specific, region-specific, or service-specific queries.