Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

Unable to access public api on aws api gateway from app running on an ec2 behind vpc

$
0
0

I have an created a public aws api gateway which i have have tested and works with an app deployed on my local and with curl

But when i deploy the app on the ec2 on a vpc it cannot query that public api i get 403 forbidden

Is there any reason as to why i cannot query this api ?

From more debugging i did i created another private api which i can access from the ec2 behind the vpc and everything works fine

I also tried running some curl requests to another public api and that works

It seems my issue is with when access public regional aws api gateway from a vpc


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>