0 votes
1 view
in AWS by (18.2k points)

I have a lambda function that accesses my Postgres db in RDS via VPC. After it queries the db, I want to post a notification to SNS. Because my lambda function exists in my VPC, it cannot access SNS. I have an internet gateway on my VPC. I read through the VPC endpoint documentation and currently, only s3 is supported.

Is there any way to publish to SNS in a lambda function in a VPC?

1 Answer

0 votes
by (42.5k points)

There is no need to set up an Internet Gateway or a NAT because SNS is supporting VPC Endpoints now via AWS PrivateLink.

Check out this blog for more information:

https://aws.amazon.com/blogs/security/securing-messages-published-to-amazon-sns-with-aws-privatelink/

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...