Skip to content

Example on how to authenticate to an RDS database using IAM

License

Notifications You must be signed in to change notification settings

Mr-istov/aws-rds-iam-auth-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS RDS auth using IAM

  1. Create an example RDS with IAM auth enabled
  2. Connect to the RDS and create a user
CREATE USER test_iam_user;
GRANT rds_iam to test_iam_user;
  1. Create the IAM policy required for iam db access
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["rds-db:connect"],
      "Resource": ["arn:aws:rds-db:us-east-1:340114170214:dbuser:db-J3BWOZXMNUSF5VGGGPRJKAGWHE
/test_iam_user"]
    }
  ]
}

About

Example on how to authenticate to an RDS database using IAM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published