VPC Lambda connect to AWS Service

0

Hello,

Which is the preferred way to connect from a VPC Lambda to an AWS Service ?

When I tried to create a VPC Endpoint for AWS Service Translate, I've noticed that all AWS Services are available only in US-EAST-1 AZ. Should I make also a connection cross-VPC ? Or is it enough to specify the Endpoint, even if the Lambda is in another AZ (US-EAST-2) and VPC ?

Or should I use a NAT-Gateway ?

Thank you,
Mihai ADAM

  • After building the Endpoint in US-EAST-1, AWS provides a DNS that could be used by Lambdas in other regions (US_EAST-2).

2개 답변
0
수락된 답변

Based on the details provided, the preferred way to connect your VPC Lambda function to the AWS Translate service is by using an interface VPC endpoint. This allows you to securely access the Translate API from within your VPC without using public IPs or traversing the public internet.

Moreover, AWS do have Translate service available in us-east-2 region (Service name - com.amazonaws.us-east-2.translate) and we can create Interface endpoint to access this service from VPC in us-east-2 region. I would suggest you use Interface endpoint to connect Lamda to Translate service in us-east-2 region.

profile picture
Rajan
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • Thank you for your answer. Indeed there is a Translate Service in region us-east-2, that appears in create Endpoint interface only when Ohio region is selected in Management Console (Endpoints can be created only for Services in selected Region).

0

In your specific case, if AWS Translate service is available only in the US-EAST-1 region and you have your Lambda function deployed in a VPC in another region (e.g., US-EAST-2), you would typically use cross-region VPC peering or a public endpoint. If the service does offer a VPC endpoint, you can use that for private connectivity within your VPC. Using a NAT Gateway is also an option if the service is accessible over the internet

Hope it clarifies and if does I would appreciate answer to be accepted so that community can benefit for clarity, thanks ;)

profile picture
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠