rds-db:connect

Permissions management

rds-db:connect is a Permissions management access-level action in the rds-db service. Grants permission to connect to an RDS database from an IAM role or user

Resource types

ARNs that rds-db:connect can be scoped to in an IAM policy.

arn:${Partition}:rds-db:${Region}:${Account}:dbuser:${DbiResourceId}/${DbUserName} required
db-user

Condition keys

Keys you can use in the Condition block of a policy that grants rds-db:connect.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the parent RDS DB instance or Aurora DB cluster of the db-user

Example IAM policy

A minimal policy that allows rds-db:connect. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowRdsdbconnect",
      "Effect": "Allow",
      "Action": "rds-db:connect",
      "Resource": "*"
    }
  ]
}