I'm working with Amazon web services and I have a VPC with two instances one of the instances is running my app and the other one has a VPN connection to a payments system. The VPN tunnel is working and I can ping the payments system, I can also ping one instance from the other.
I would like to make REST requests from the instance where my app is running, but I have to do it through the tunnel. So what I would need is a way to redirect all the traffic that goes into the instance with the VPN to the payments system, or at least that is my idea, I don't know if there is a better way.
I'm new to AWS so I don't know if there is a native way, or if I would have to build a server to redirect all the traffic(would like to avoid this).