How the cost management capabilities in Amazon assistant work
Agentic architecture
The Amazon assistant uses an agentic architecture to analyze your Amazon costs. When you ask a question, the Amazon assistant creates a plan for how to answer it, gathers data from multiple sources, performs calculations, and dynamically updates its plan based on what it learns at each step. This approach allows the Amazon assistant to handle complex, open-ended questions that do not have predefined workflows.
To answer your question, the Amazon assistant can perform the following steps.
-
Forms a plan: When you ask a question, the Amazon assistant analyzes your request and creates an initial plan for how to gather the necessary information.
-
Gathers data: The Amazon assistant retrieves data from the appropriate Billing and Cost Management APIs based on your question. For complex questions, the Amazon assistant may call multiple APIs in series or in parallel.
-
Performs calculations: The Amazon assistant can perform calculations ranging from simple period-over-period changes to complex unit economic metrics like cost per vCPU-hour or cost per GB-month of storage.
-
Updates the plan: As the Amazon assistant reviews the results from each API call or calculation, it updates its plan based on what it learns. For example, if the Amazon assistant discovers that EC2 costs increased significantly, it might decide to investigate whether any Savings Plans expired.
-
Continues until complete: The Amazon assistant continues gathering data and refining its analysis until it has enough information to provide a comprehensive answer to your question.
Throughout this process, the Amazon assistant displays the details of each API call it makes and each calculation it performs, so you can see exactly how it arrived at its answer.
If you request it, the Amazon assistant can create a chart of your Billing and Cost Management data. To create a chart, the Amazon assistant gathers data from the relevant APIs, performs any necessary calculations, formats the data to populate the chart, then renders the chart. Charts generated in the Amazon assistant reflect a snapshot of your billing data at the time you requested the chart, and do not update as additional charges are incurred.
Data sources and API integrations
The Amazon assistant retrieves cost data from 38 APIs across seven Billing and Cost Management services. This broad integration allows the Amazon assistant to answer questions that span multiple data sources without requiring you to switch between different tools or console pages.
Cost Explorer
The Amazon assistant uses Cost Explorer APIs to retrieve your historical and forecasted cost and usage data:
-
GetCostAndUsage: Retrieves cost and usage data aggregated by time period and dimension
-
GetCostAndUsageWithResources: Retrieves resource-level cost data with hourly granularity
-
GetCostForecast: Retrieves forecasted costs for a specified time period
-
GetUsageForecast: Retrieves forecasted usage for a specified time period
-
GetDimensionValues: Retrieves available values for cost dimensions (such as service names or account IDs)
-
GetTags: Retrieves available cost allocation tag keys and values
-
GetCostCategories: Retrieves available cost category keys and values
-
GetAnomalies: Retrieves detected cost anomalies
-
GetReservationCoverage: Retrieves the percentage eligible spend covered by reservations
-
GetReservationUtilization: Retrieves the utilization of purchased reservations
-
GetReservationPurchaseRecommendation: Retrieves recommendations for purchasing reservations
-
GetSavingsPlansCoverage: Retrieves the percentage of eligible spend covered by Savings Plans
-
GetSavingsPlansUtilization: Retrieves the utilization of purchased Savings Plans
-
GetSavingsPlansUtilizationDetails: Retrieves detailed utilization data for Savings Plans
-
GetSavingsPlansPurchaseRecommendation: Retrieves recommendations for purchasing Savings Plans
-
GetRightsizingRecommendation: Retrieves rightsizing recommendations for EC2 instances
-
GetCostAndUsageComparisons: Retrieves cost comparisons between time periods
-
GetCostComparisonDrivers: Retrieves the drivers of cost changes between time periods
Cost Optimization Hub
The Amazon assistant uses Cost Optimization Hub APIs to retrieve personalized cost optimization recommendations:
-
GetRecommendation: Retrieves details for a specific recommendation
-
ListRecommendations: Retrieves a list of recommendations with filtering options
-
ListRecommendationSummaries: Retrieves summary information about recommendations
Amazon Compute Optimizer
The Amazon assistant uses Compute Optimizer APIs to retrieve resource optimization recommendations:
-
GetAutoScalingGroupRecommendations: Retrieves rightsizing recommendations for Auto Scaling groups
-
GetEBSVolumeRecommendations: Retrieves recommendations for EBS volumes
-
GetEC2InstanceRecommendations: Retrieves rightsizing recommendations for EC2 instances
-
GetECSServiceRecommendations: Retrieves recommendations for ECS services
-
GetRDSDatabaseRecommendations: Retrieves recommendations for RDS databases
-
GetLambdaFunctionRecommendations: Retrieves recommendations for Lambda functions
-
GetIdleRecommendations: Retrieves recommendations for idle resources
-
GetLicenseRecommendations: Retrieves recommendations for license optimization
-
GetEffectiveRecommendationPreferences: Retrieves the effective recommendation preferences
Amazon Budgets
The Amazon assistant uses the Budgets API to retrieve information about your budget configurations and status:
-
DescribeBudgets: Retrieves budget details including thresholds and actual spending
Free Tier
The Amazon assistant uses Free Tier APIs to retrieve information about your free tier usage:
-
GetFreeTierUsage: Retrieves your current free tier usage
-
GetAccountPlanState: Retrieves information about your current account type and free tier eligibility
-
ListAccountActivities: Retrieves a list of account activities you can take to earn additional free tier credits
-
GetAccountActivity: Retrieves details of a specific account activity you can take to earn additional free tier credits
Amazon Price List
The Amazon assistant uses Price List APIs to retrieve public pricing information for Amazon services:
-
DescribeServices: Retrieves a list of available Amazon services
-
GetAttributeValues: Retrieves valid values for product attributes
-
GetProducts: Retrieves pricing information for specific products
Calculation engine
The Amazon assistant includes a flexible calculation engine that allows it to perform a wide range of calculations on your cost data. This capability enables it to provide deeper insights than simple data retrieval alone.
Types of calculations
The Amazon assistant can perform calculations including:
-
Period-over-period changes: Calculate the difference in costs between two time periods, both in absolute terms and as a percentage change.
-
Unit economics: Calculate metrics like cost per vCPU-hour, cost per GB-month of storage, or cost per API request.
-
Effective rates: Calculate the effective cost per unit after applying discounts from Savings Plans or Reserved Instances.
-
Aggregations: Sum, average, or find the minimum or maximum values across multiple dimensions.
-
Custom metrics: Combine multiple data points to create custom metrics tailored to your question.
API transparency
With each response, the Amazon assistant provides full transparency into how it retrieved and processed your data. This transparency helps you understand exactly what the Amazon assistant did to answer your question and allows you to verify the results or provide more specific instructions in follow-up questions.
What Amazon assistant displays
For each response, the Amazon assistant shows you:
-
API calls made: The Amazon assistant displays the name of each API it called to retrieve data.
-
Parameters used: The Amazon assistant shows the exact parameters it used for each API call, including time ranges, filters, grouping dimensions, and any other relevant parameters.
-
Console deep-links: Where applicable, the Amazon assistant provides links to matching views in the Amazon Management Console. These links allow you to verify the data the Amazon assistant retrieved or explore the data further using the console's visualization and filtering capabilities.
Using transparency to refine your questions
The transparency that the Amazon assistant provides allows you to guide its behavior more effectively. For example:
-
If the Amazon assistant retrieved data for the wrong time period, you can specify the exact dates you want in a follow-up question.
-
If the Amazon assistant grouped costs by one tag key but you wanted them grouped by another, you can ask the Amazon assistant to regroup the data.
Limitations
The Amazon assistant has the following limitations:
-
Pricing data: The pricing and cost estimation capabilities only provide public pricing data from the Amazon Price List APIs. Customer-specific discounts are not reflected in pricing estimates. The Amazon assistant does not integrate with the Amazon Pricing Calculator, so it cannot create or save workload estimates that reflect customer-specific discounts or pricing.
-
Savings Plans analysis: The Amazon assistant can provide Savings Plans recommendations and analyze your historical Savings Plans coverage and utilization. The Amazon assistant does not integrate with Savings Plans Purchase Analyzer, so it cannot model the impact of a specific Savings Plans purchase on savings, coverage, or utilization.
-
Mutating actions: The Amazon assistant can retrieve and analyze cost data, but cannot take mutating actions on your behalf, such as creating or modifying budgets, purchasing Savings Plans or Reserved Instances, or modifying Cost Management preferences.