Here’s how to enable performance insights on a RDS instance.

Enable

<pre lang="bash">
aws rds modify-db-instance \
--db-instance-identifier sample-db-instance \
--enable-performance-insights \
--region us-east-1 \
--profile default

Disable

<pre lang="bash">
aws rds modify-db-instance \
--db-instance-identifier sample-db-instance \
--no-enable-performance-insights \
--region us-east-1 \
--profile default