rds-health icon indicating copy to clipboard operation
rds-health copied to clipboard

NotAuthorizedException if Permormance Insights is not enabled

Open fogfish opened this issue 5 months ago • 1 comments

If RDS instance don't have PI enabled the rds-health check -n DB shows:

Error: operation error PI: GetResourceMetrics, https response error StatusCode: 400, RequestID: xxx, NotAuthorizedException: The resource db-xxx for service type RDS is not authorized for this account: failed to fetch samples
Operation error PI: GetResourceMetrics, https response error StatusCode: 400, RequestID: xxx, NotAuthorizedException: The resource db-xxx for service type RDS is not authorized for this account: failed to fetch samples

Expected Behaviour: Have a clear message that's-health` fails to get the data, because PI is not enabled.

fogfish avatar Mar 08 '24 13:03 fogfish