dms:TestConnection

Read

dms:TestConnection is a Read access-level action in the dms service. Grants permission to test the connection between the replication instance and the endpoint

Resource types

ARNs that dms:TestConnection can be scoped to in an IAM policy.

arn:${Partition}:dms:${Region}:${Account}:endpoint: required
Endpoint
arn:${Partition}:dms:${Region}:${Account}:rep: required
ReplicationInstance

Condition keys

Keys you can use in the Condition block of a policy that grants dms:TestConnection.

aws:ResourceTag/${TagKey} String

Filters access by the presence of tag key-value pairs attached to the resource

dms:endpoint-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for Endpoint

dms:rep-tag/${TagKey} String

Filters access by the presence of tag key-value pairs in the request for ReplicationInstance

Example IAM policy

A minimal policy that allows dms:TestConnection. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDmsTestConnection",
      "Effect": "Allow",
      "Action": "dms:TestConnection",
      "Resource": "*"
    }
  ]
}

Related actions in dms

View all dms actions →