I have an api gateway with custom domain names set up, it works fine if I visit the custom domain name but if I visit the API Gateway domain name (https://xxxxx.execute-api.us-west-2.amazonaws.com) directly I just got:
{"message":"Forbidden"}
My understanding is that custom domain name here is just like an alias to the original API Gateway domain name and is just a prettier name for it so I should be invoking the api gateway by either of them?
https://xxxxx.execute-api.us-west-2.amazonaws.com/qa
, when we use custom domain name, it will directly point to a stage that is defined in 'API mappings' – Balu Vyamajala