I'm trying to switch my site, which is currently CloudFront and Elastic Beanstalk, to API Gateway.
When I try to create the Custom Domain in API Gateway I get a message that there is already a CloudFront distribution for that domain, which is true. But if I remove that distribution my site will be down until the new distribution (for the API Gateway) will be up.
Is there anyway I can swap these or something ?
I do have control over the DNS records.
The solution that worked in the end :
Each of these steps takes a little time ... but there is no downtime.