Using API Calls over an SES VPC Endpoint

1

Hello,

I have found verification of this elsewhere on the Internet, so I wanted to post here to ask a "why" question.

I have code that is using the API call send-templated-email in a Lambda function. Recently, I locked down the VPC removing the Internet and NAT Gateways. While adding the various required VPC endpoints needed for my solution, I discovered that the API calls to SES are not available. SMTP sending is available, but my solution doesn't use it.

Any options for me besides moving this Lambda out of the VPC? Why this limitation? Seems a bit rare for what is normally complete and robust solutions from AWS.

Thanks

1개 답변
0

Yes, the Lambda is in the VPC in order to connect to a DB. The SES VPC Endpoint is only able to accept SMTP connections. It doesn't accept the API call to the normal email.<region>.amazonaws.com endpoint URL. The VPCE creates the endpoint at the email-smtp.<region>.amazonaws.com - SMTP only.

Because I am using the SES Template system, I can't use the code as written within the VPC. I have to move it out or set up a route out of the VPC with a NAT gateway, etc. In my case, this is all triggered on a SQS message, so I will move more onto the message to solve this.

I guess I am surprised by this omission. AWS is usually so thorough.

Thanks.

CajunD
답변함 일 년 전
  • Okay, I am also interested in this question.

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

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

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

관련 콘텐츠