I am trying to connect to a private server running on a windows machine from my AWS Lambda. The goal is to get some data from that server in the Lambda and work with it.
I've created a site-to-site VPN connection with that private server and the tunnels are up. I've put my lambda on the VPC that is connected to the site-to-site VPN. But still I can't connect to the server.
Can anyone please give me any resource or suggest the steps on how I should actually do it?
I've followed the following steps:
- Created a VPC with a CIDR.
- Created a private subnet from that VPC (let's say it's named subnet-1)
- Added a site-to-site VPN, connected it to the private server and attached the VPC to the VPN connection.
- Created a Lambda within the subnet-1.
- Tried to ping the private server, but failed.
I'm not providing any code or any screenshot as this might make this question too long
Update: The issue is solved. I had a wrong configuration in the router table. After fixing that, it worked.
There are several things that can cause the connectivity to fail:
These are the questions that I tend to ask when running into this problems but there could be other things that can cause your issue. Hope these checks help.