Skip to main content

insights

Creates, updates, deletes, gets or lists an insights resource.

Overview

Nameinsights
TypeResource
Idaws.eks.insights

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the insight.
namestringThe name of the insight.
additional_infoobjectLinks to sources that provide additional context on the insight.
categorystringThe category of the insight. (UPGRADE_READINESS, MISCONFIGURATION, ROLLBACK_READINESS)
category_specific_summaryobjectSummary information that relates to the category of the insight. Currently only returned with certain insights having category UPGRADE_READINESS.
descriptionstringThe description of the insight which includes alert criteria, remediation recommendation, and additional resources (contains Markdown).
insight_statusobjectAn object containing more detail on the status of the insight resource.
kubernetes_versionstringThe Kubernetes minor version associated with an insight if applicable.
last_refresh_timestring (date-time)The time Amazon EKS last successfully completed a refresh of this insight check on the cluster.
last_transition_timestring (date-time)The time the status of the insight last changed.
recommendationstringA summary of how to remediate the finding of this insight if applicable.
resourcesarrayThe details about each resource listed in the insight check result.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_insightselectname, id, regionReturns details about an insight that you specify using its ID.
list_insightsselectname, regionReturns a list of all insights checked for against the specified cluster. You can filter which insights are returned by category, associated Kubernetes version, and status. The default filter lists all categories and every status. The following lists the available categories: UPGRADE_READINESS: Amazon EKS identifies issues that could impact your ability to upgrade to new versions of Kubernetes. These are called upgrade insights. MISCONFIGURATION: Amazon EKS identifies misconfiguration in your EKS Hybrid Nodes setup that could impair functionality of your cluster or workloads. These are called configuration insights.
start_insights_refreshexecname, regionInitiates an on-demand refresh operation for cluster insights, getting the latest analysis outside of the standard refresh schedule.

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
idstringThe identity of the insight to describe.
namestringThe name of the cluster for the refresh insights operation.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns details about an insight that you specify using its ID.

SELECT
id,
name,
additional_info,
category,
category_specific_summary,
description,
insight_status,
kubernetes_version,
last_refresh_time,
last_transition_time,
recommendation,
resources
FROM aws.eks.insights
WHERE name = '{{ name }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

Lifecycle Methods

Initiates an on-demand refresh operation for cluster insights, getting the latest analysis outside of the standard refresh schedule.

EXEC aws.eks.insights.start_insights_refresh
@name='{{ name }}' --required,
@region='{{ region }}' --required
;