Lambda can’t access to the internet using axios
May 22, 2021
- You have to only restrict your lambda for a private VPC.
- Private route table should attach to private subnet
- Public route table should attach to public subnet
- NAT GW should attach with a private route table
- IG GW should attach with a public route table
- If private route table not attach to private subnet then it will utilize a default route table which doesn’t have any connection with internet (NAT)