awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
924 stars 399 forks source link

Cloudfront Distribution output when custom domain is used #490

Open NickLarsenNZ opened 3 years ago

NickLarsenNZ commented 3 years ago

Currently there is only an option to create a hosted zone - not the DNS record on an existing zone, so I'm left to manage that myself.

It would be nice to at least get the CloudFront Distribution hostname as an output when using a custom domain, so that I can manage the DNS records.

The current implementation hides the CloudFront domain name when a custom domain is used:

https://github.com/awslabs/aws-api-gateway-developer-portal/blob/20005a5b40431022f5636254f69de1d32026fd80/cloudformation/template.yaml#L2080-L2089

Even nicer would be an option to manage the record set on an existing hosted zone.