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
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • 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
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南