rightsizing_recommendations
Creates, updates, deletes, gets or lists a rightsizing_recommendations resource.
Overview
| Name | rightsizing_recommendations |
| Type | Resource |
| Id | aws.ce.rightsizing_recommendations |
Fields
The following fields are returned by SELECT queries:
- get_rightsizing_recommendation
| Name | Datatype | Description |
|---|---|---|
account_id | string | The account that this recommendation is for. (pattern: <code>[\S\s]*</code>) |
current_instance | object | Context regarding the current instance. |
finding_reason_codes | array | The 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_detail | object | The details for the modification recommendations. |
rightsizing_type | string | A recommendation to either terminate or modify the resource. (TERMINATE, MODIFY) |
terminate_recommendation_detail | object | The details for termination recommendations. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_rightsizing_recommendation | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_rightsizing_recommendation
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
;