EKS Postgres - Executing commands based on table events

Hi Team, How can i execute a command on EKS based on the changes in rds postgres. Basically i want to capture the table name and event like insert, delete or update and based on the event wants to run some command on EKS cluster. Whats the best approach to achieve this

like this?
https://iasql.com/

Depends on the command, its sounds like you need some sort of CDC.

You can use AWS MSK (kafka) to listen to change (insert, delete, update events) in your postgres db,

for each change you can trigger some lambda function.

You will then want to do whatever with that lambda function

Again its a little unclear what commands you want to run on EKS