I am currently using IGW in AWS is order to connect flask ec2s to outer api requests. I want to secure those servers from now on,
meaning - moving them into private ip ec2s and still getting api requests from outside.
I have tried using nat gw in order to communicate a private ip, but I see it is working only from inside to the internet and not the other way around.
How can I use nat gw for both directions (or any other solution for that matter), keeping the security of a private ip and a two way internet communication?