To Nha Notes | July 6, 2021, 5:26 p.m.
To setup private network to get lambda connected to internet, we do as below flow:
lambda -> private subnets -> NAT -> public subnets -> internet gateway
Associate each private subnet with a NAT Gateway
0.0.0.0/0 nat-xxx
Associate above NAT Gateway with a public subnet
Associate public subnet with an Internet Gateway
0.0.0.0/0 igw-yyy
Configure private subnets to lambda