5

I want to know if is possible that a lambda function access to an endpoint that is in my private network, and that is not exposed to internet.

I was thinking use AWS Direct Connect to make a VPN between my private network (on premise) and AWS region; but i can't find any example on how configure the VPN on the lambda function.

Thanks you very much

Vladimir Venegas
  • 3,894
  • 5
  • 25
  • 45

1 Answers1

8

This is how I would solve,

Create a VPC in AWS. Configure the lambda to run in that configured VPC. Create a VPN Connection to your VPC. Now your private resources will be available to your Lambda.

Documentation on running Lambda in your VPC:

https://aws.amazon.com/blogs/aws/new-access-resources-in-a-vpc-from-your-lambda-functions/

VPC VPN Configuration:

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_VPN.html

Hope it helps.

Kannaiyan
  • 12,554
  • 3
  • 44
  • 83
  • this lambda function, if run in a VPC context, can be triggered by a kinesis event? – Vladimir Venegas Sep 20 '17 at 23:25
  • I did verify the configuration we used, it did work with Kinesis and HTTP trigger as well. All configuration related to those are taken care by the cloud. – Kannaiyan Sep 21 '17 at 03:12