Skip to content

Using custom DNS for cluster endpoint #58

Answered by sergiyvamz
cmvagner asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
You can use "?.account-identifier.region.rds.amazonaws.com" (not "?.cluster-account-identifier.region.rds.amazonaws.com" as you've mentioned) as clusterInstanceHostPattern. Another option is to use "?.customDomain.com" if your DNS can resolve it to db instance endpoints or corresponding IP addresses.

Here's an example. Let's assume your db cluster has two instances ("instance-a" and "instance-b").

  1. If you use "clusterInstanceHostPattern=?.account-identifier.region.rds.amazonaws.com", the question mark will be replaced by actual instance name:
    "instance-a" -> "instance-a.account-identifier.region.rds.amazonaws.com"
    "instance-b" -> "instance-b.account-identifier.region.rds.amazonaws.com"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cmvagner
Comment options

@sergiyvamz
Comment options

Answer selected by cmvagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants