See https://forums.aws.amazon.com/thread.jspa?threadID=234959
See https://forums.aws.amazon.com/thread.jspa?threadID=234959
If you really want / need the airgapping that private subnets provide, you'd better be willing to pay for them, and that makes sense to me personally - outside of PCI DSS or HIPAA compliance (or similar) I don't see any reason to use private subnets. That won't apply on a personal project.
Or if you are a true extreme penny pincher -- have your lamba function invoke aws api to set up a NAT Gateway and update the subnet route, then execute your business function and then clean up the NAT.
edit: Apparently not. See below, my mistake.
See: https://docs.aws.amazon.com/lambda/latest/dg/vpc.html#vpc-in...
Public Lambdas can invoke VPC Lambdas (AFAIK, the reverse is not possible without a VPC endpoint).
A free tier for NAT gateways would go a very long way. I wonder why they wouldn't have one.
(I'm the tech lead for Workers.)