aws ce get-cost-and-usage-comparisons
Retrieves cost and usage comparisons for your account between two periods within the last 13 months. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--baseline-time-periodThe reference time period for comparison.--billing-view-arnThe Amazon Resource Name (ARN) that uniquely identifies a specific billing view.--comparison-time-periodThe comparison time period for analysis.--filterUse Expression to filter in various Cost Explorer APIs.--group-byYou can group results using the attributes DIMENSION, TAG, and COST_CATEGORY.--max-resultsThe maximum number of results that are returned for the request.--metric-for-comparisonThe cost and usage metric to compare.--next-page-tokenThe token to retrieve the next set of paginated results.