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개 답변
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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인