1 Answer
- Newest
- Most votes
- Most comments
2
As mentioned in the CloudFront API Reference, CloudFront requires at least one origin when you create or update a distribution, and it doesn't matter whether your origin exists or not.
If you want to delete a non-existing origin, you need to add a new origin first, then delete the old one.
answered 3 years ago

It's clear, the behavior is correct. The problem is only with the bad error message.
Then you can contact AWS Support and send a request to improve the error message if you have a better one.