Home > database >  One VPC Endpoint for multiple services in AWS
One VPC Endpoint for multiple services in AWS

Time:12-04

I have VPC with two private subnets in two different AZ and I am trying to create a VPC Endpoint for connecting lambda to my database in private one of subnet

But I need SNS also for sending message to users based on my lambda function

Do I need to create another endpoint for SNS in that subnet or I can attach multiple services to the same endpoint

I know NAT gateway is an option but it is costly than endpoints

Please suggest best way to do this

Thanks, Monika

CodePudding user response:

No. A VPC Endpoint is always for a specific service.

By the way, you do not require a VPC Endpoint for Lambda in your situation. Simply configure the AWS Lambda function to connect to the private subnets in the VPC. This is an in-built capability of Lambda functions and the do not require a VPC Endpoint to access the subnets.

  • Related