SQS VPC interface endpoint and it's usage via AWS SDK v1

0

I have an AWS SQS VPC Interface endpoint with private DNS enabled. However, while using the SQS via AWS SDK v1 (java), I am providing the SQS url like below e.g https://sqs.us-east-1.amazonaws.com/<account_id>/<my_queue_name>

so, will my AWS SDK v1 will use the VPC endpoint provided I haven't configured the SQS client with any endpoint and my SQS doesn't have any policy other than the default one ?

1개 답변
1

In order to use Interface Endpoints you must specify the endpoint name in your code. If you don't specify it then the connection will be made to the default endpoint (for the region you've configured), not the private endpoint you've created.

profile pictureAWS
전문가
답변함 2년 전
  • okay, does the endpoint can be deduced from the SQS URL? If I use for e.g https://sqs.us-east-1.amazonaws.com/<account_id>/<my_queue_name> in SDK v1 and sqs.us-east-1.amazonaws.com is my Private DNS name for the VPC endpoint. Does that mean I don't have to set the endpoint in the SQS client of SDK and it can be deduced from the SQS URL itself? and it will not use the default service endpoint although it's same as the private DNS name

  • I can't say how individual libraries will determine the endpoint even if it can be determined from the service URL (other services don't work that way). In general private endpoints have to be explicitly specified to the library.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠