Skip to main content

rightsizing_recommendations

Creates, updates, deletes, gets or lists a rightsizing_recommendations resource.

Overview

Namerightsizing_recommendations
TypeResource
Idaws.ce.rightsizing_recommendations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account that this recommendation is for. (pattern: <code>[\S\s]*</code>)
current_instanceobjectContext regarding the current instance.
finding_reason_codesarrayThe list of possible reasons why the recommendation is generated, such as under- or over-utilization of specific metrics (for example, CPU, Memory, Network).
modify_recommendation_detailobjectThe details for the modification recommendations.
rightsizing_typestringA recommendation to either terminate or modify the resource. (TERMINATE, MODIFY)
terminate_recommendation_detailobjectThe details for termination recommendations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_rightsizing_recommendationselectregionCreates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances. Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Creates recommendations that help you save cost by identifying idle and underutilized Amazon EC2 instances. Recommendations are generated to either downsize or terminate instances, along with providing savings detail and metrics. For more information about calculation and function, see Optimizing Your Cost with Rightsizing Recommendations in the Billing and Cost Management User Guide.

SELECT
account_id,
current_instance,
finding_reason_codes,
modify_recommendation_detail,
rightsizing_type,
terminate_recommendation_detail
FROM aws.ce.rightsizing_recommendations
WHERE region = '{{ region }}' -- required
;