I have a AWS Aurora db in vpc in private subnet. From Aurora, we need to execute lambda which will connect to pinpoint to send sms. Lambda function needs access to internet. How to provide internet to vpc without using nat
8
votes
whats the problem using NAT ? There is no endpoint for Pinpoint like S3/DynanoDB.
- James Dean
One problem is cost. When using a serverless stack, it's possible for costs to be basically 0 at low to moderate usage. Once you need a NAT, you're looking at a minimum of $30/month, regardless of how low your usage is.
- Tomty
Note that if cost is, in fact, the issue, you can use a NAT Instance (docs.aws.amazon.com/vpc/latest/userguide/VPC_NAT_Instance.html) instead of a NAT Gateway, whose fixed costs can theoretically go as low as $4-7/month.
- Tomty