Bad error message when trying to delete non-existent origin from the CloudFront Distribution

1

Steps

  1. Create S3 bucket
  2. Create CloudFront Distribution

a. Use S3 bucket as an origin

b. Create CloudFront Distribution

  1. Delete S3 bucket
  2. Open Distribution created before
  3. Go to Origins
  4. Click on radio button to the left from origin
  5. Press Delete button above, Press delete again on the confirmation screen

Actual result: Error message:

Failed to delete origin: 1 validation error detected: Value '[]' at 'distributionConfig.origins.items' failed to satisfy constraint: Member must have length greater than or equal to 1

error message

Expected result: Human Readable error message.

Denis
質問済み 8ヶ月前1134ビュー
1回答
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.

profile picture
HS
回答済み 8ヶ月前
  • 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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ