This is more of a technical question than anything code related.
I have an expressjs
app running on api-gateway
using aws-serverless-express wwhich allows you to port an expressjs
app with minimal changes on api-gateway
. But because APIG generates a url for you for each deployment of the api, with an api-id in it, this is not client friendly. So I set-up a cloudfront
distribution pointing to APIG's url.
However when I run the app, the url displayed in the browser is not the one generated by cloudfront (although I use that url to go to the app) but the one APIG created.
I know there is an option within APIG to set a custom domain name, and that, after doing some research, APIG sets up a Cloudfront Distribution in the background, but because I was not the one setting up the DNS service and do not have permissions to change these settings for this specific role/region on aws, was wondering if the problem lies in the fact that the custom url was not set-up through APIG's options?