conntect to RDS Aurora withh less privilege

0

Hi team,

My app runs on ECS fargate cluster, which connects to MySQL Aurora DB.

Actually, the fargate containers connect to my DB using the root/master RDS account of the DB,

I want to use the least privilege principle so that my fargate task can not do too much other than: select, insert, update and delete.

how can I achieve this architecture where I can pass to fargate only creds that allow my app to do only CRUD operation and not stuff like db dump.....

Note: we are not allowed at all to create IAM users in our AWS account

Thank you.

1 réponse
0

Since you are not allowed to create IAM users and database IAM authentication (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/database-authentication.html#iam-database-authentication) might not be an option for you, you can use password authentication instead (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/database-authentication.html#password-authentication).

Using password authentication, you can create users and grant them a less privileged access to your database. If you are using an Aurora MySQL version that is compatible with MySQL 8.0, you can refer to MySQL 8.0 Reference Manual for more information.

profile picture
joahna
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions