Skip to content

Instantly share code, notes, and snippets.

View cmmp's full-sized avatar

Cássio M. M. Pereira cmmp

View GitHub Profile
@cmmp
cmmp / gist:0d9c61d13eab3419ac300a4026d2037c
Created May 24, 2018 12:24
Destination configuration
#Mon May 14 15:27:09 BRT 2018
URL=https\://host\:port
Name=ErpQueryEndpoint
TrustAll=TRUE
Type=HTTP
Password=Password
Authentication=BasicAuthentication
User=Username

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.
### Keybase proof
I hereby claim:
* I am cmmp on github.
* I am cassio (https://keybase.io/cassio) on keybase.
* I have a public key ASDXsRL7twSNHVLCwRj4uNv1w2paSrOqCCUSvVsWSuNfPgo
To claim this, I am signing this object: