Skip to content

Private DNS for interface endpoint

0

Dear Team - if we enable private DNS option for SQS interface endpoint in us-west-2 in VPC A, can we connect sqs.us-west-2.amazonaws.com directly from peered VPC B ? In addition to that, if we create R53 Inbound resolver endpoint and associate that to Private DNS and forward the query for sqs.us-west-2.amazonaws.com from on-prem client through local on-prem DNS forwarder, can we access sqs.us-west-2.amazonaws.com from on-prem on private IP address.

I think S3 interface endpoint private DNS support above right ?

Thanks

asked 2 years ago648 views
1 Answer
1
Accepted Answer

You can connect to the VPC endpoint for SQS from the peered VPC, but in order for VPC B to resolve the name sqs.us-west-2.amazonaws.com to the IP addresses of the endpoint located in VPC A, you'd need a Route 53 Resolver inbound endpoint in VPC A, Route 53 Resolver outbound endpoint in VPC B, and a Route 53 Resolver rule attached to VPC B set to use the outbound resolver endpoint to send the queries for those names to the inbound resolver endpoint in VPC A.

Without this setup, VPC B would resolve standard AWS service names to the public service endpoints and not the IPs of the VPC endpoints in one of the peered VPCs of VPC B.

For on-prem, the setup you described will work, if the Route 53 Resolver inbound endpoint is located in VPC A. The on-premises configuration that sends DNS queries to the inbound resolver endpoint corresponds functionally with the combination of outbound resolver endpoint and resolver rule described above for the peered VPC B.

All VPC interface endpoints work with this style of setup, and the interface endpoint option for S3 is no exception.

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
EXPERT
reviewed 2 years ago
  • Thanks. So that would add Resolver endpoint cost. In that case only other option to resolve from peered VPC B would be below ?

    • Disable Private DNS option from SQS Interface endpoint. -Create PHZ sqs.us-west-2.amazonaws.com and add Alias record pointing to interface endpoint id.
    • associate PHZ to VPC B.

    is above correct ?

  • Yes, that'll work. The Route 53 Resolver inbound and outbound endpoints (for the peered VPC part, not on-prem) are replaced by the private hosted zone. You could use this approach also for on-prem, although instead of an alias record, you'd point the apex A record of the internal DNS zone on premises to the static IPs of the VPC endpoint for SQS.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.