Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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 (44.4k 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/

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories

...