We have our api running on an AWS EC2 instance. We are interested in AWS API Gateway to authenticate API calls using Cognito and version control.
Can anyone tell me how can I allow access to the API hosted on the EC2 instance without making it public? I only want API Gateway to access that API.
I was not able to find any solution in the documentation.