API deployment and base URL

Hi,
I’m wondering what is the recommended way to deploy APIs without changing the base URL.
Regarding this subject the following questions arise:

  • How can I set my own domain when deploying (and keep the same URL for all the endpoints)?
  • Which is the way to go for avoiding downtime when deploying?

Thank you in advance

AFAIK you can’t yet use CF templates to automatically create a custom domain for your API Gateway endpoint (which is annoying) because APIG is backed by CloudFront which requires everything to be SSL which means you need to give it SSL certs (like you would any other HTTPS web server)… and while that functionality is available via the aws cli it doesn’t seem to be available in CloudFormation yet.

Thank you very much @ianserlin