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