Skip to content

aws.compute_optimizer.get_recommendation_summaries

Example SQL Queries

SELECT * FROM
aws.compute_optimizer.get_recommendation_summaries;

Description

Returns the optimization findings for an account.

It returns the number of:

  • Amazon EC2 instances in an account that are Underprovisioned, Overprovisioned, or Optimized.

  • Auto Scaling groups in an account that are NotOptimized, or Optimized.

  • Amazon EBS volumes in an account that are NotOptimized, or Optimized.

  • Lambda functions in an account that are NotOptimized, or Optimized.

  • Amazon ECS services in an account that are Underprovisioned, Overprovisioned, or Optimized.

Table Definition

Column NameColumn Data Type
account_ids Input Column

The ID of the Amazon Web Services account for which to return recommendation summaries.

If your account is the management account of an organization, use this parameter to specify the member account for which you want to return recommendation summaries.

Only one account ID can be specified per request.

VARCHAR[]
Show child fields
account_ids[]
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
account_id

The Amazon Web Services account ID of the recommendation summary.

VARCHAR
current_performance_risk_ratings

An object that describes the performance risk ratings for a given resource type.

STRUCT(
"high" BIGINT,
"medium" BIGINT,
"low" BIGINT,
"very_low" BIGINT
)
Show child fields
current_performance_risk_ratings.high

A count of the applicable resource types with a high performance risk rating.

current_performance_risk_ratings.low

A count of the applicable resource types with a low performance risk rating.

current_performance_risk_ratings.medium

A count of the applicable resource types with a medium performance risk rating.

current_performance_risk_ratings.very_low

A count of the applicable resource types with a very low performance risk rating.

inferred_workload_savings

An array of objects that describes the estimated monthly saving amounts for the instances running on the specified inferredWorkloadTypes. The array contains the top five savings opportunites for the instances that run inferred workload types.

STRUCT(
"inferred_workload_types" VARCHAR[],
"estimated_monthly_savings" STRUCT(
"currency" VARCHAR,
"value" DOUBLE
)
)[]
Show child fields
inferred_workload_savings[]
Show child fields
inferred_workload_savings[].estimated_monthly_savings

An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing.

Show child fields
inferred_workload_savings[].estimated_monthly_savings.currency

The currency of the estimated monthly savings.

inferred_workload_savings[].estimated_monthly_savings.value

The value of the estimated monthly savings.

inferred_workload_savings[].inferred_workload_types[]
recommendation_resource_type

The resource type that the recommendation summary applies to.

VARCHAR
savings_opportunity

An object that describes the savings opportunity for a given resource type. Savings opportunity includes the estimated monthly savings amount and percentage.

STRUCT(
"savings_opportunity_percentage" DOUBLE,
"estimated_monthly_savings" STRUCT(
"currency" VARCHAR,
"value" DOUBLE
)
)
Show child fields
savings_opportunity.estimated_monthly_savings

An object that describes the estimated monthly savings amount possible by adopting Compute Optimizer recommendations for a given resource. This is based on the On-Demand instance pricing..

Show child fields
savings_opportunity.estimated_monthly_savings.currency

The currency of the estimated monthly savings.

savings_opportunity.estimated_monthly_savings.value

The value of the estimated monthly savings.

savings_opportunity.savings_opportunity_percentage

The estimated monthly savings possible as a percentage of monthly cost by adopting Compute Optimizer recommendations for a given resource.

summaries

An array of objects that describe a recommendation summary.

STRUCT(
"name" VARCHAR,
"value" DOUBLE,
"reason_code_summaries" STRUCT(
"name" VARCHAR,
"value" DOUBLE
)[]
)[]
Show child fields
summaries[]
Show child fields
summaries[].name

The finding classification of the recommendation.

summaries[].reason_code_summaries[]
Show child fields
summaries[].reason_code_summaries[].name

The name of the finding reason code.

summaries[].reason_code_summaries[].value

The value of the finding reason code summary.

summaries[].value

The value of the recommendation summary.