Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reporting if Performance Insights is enabled using the aws cli

aws pi help displays two options, describe-dimension-keys and get-resource-metrics however, does anyone know of a means by which one can report if Performance insights is actually enabled on your RDS databases using the aws cli?

like image 807
Scouse_Bob Avatar asked Aug 27 '26 19:08

Scouse_Bob


1 Answers

Yes, you can use describe-db-instances for that.

Example:

aws rds describe-db-instances \
    --db-instance-identifier database-1 \
    --query 'DBInstances[0].PerformanceInsightsEnabled' \
    --output text

Example output:

True
like image 176
Marcin Avatar answered Aug 29 '26 14:08

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!