Working in #AWS, you may find you need to move your #lambdas out of the default #VPC so they can talk to other services, eg. RDS. Granting #internet access to lambdas in the non-default VPC isn't trivial...

πŸ’‘ Here's a #CloudFormation gist with a working solution...

➑️ https://gist.github.com/instantiator/fc433a98bb6a58234602d67a69b3cda7

#CF #SAM #serverless #InternetGateway #NAT #NATGateway

AWS CloudFormation/SAM templates for an app that places lambdas inside a VPC, and restores their internet access

AWS CloudFormation/SAM templates for an app that places lambdas inside a VPC, and restores their internet access - notes.md

Gist