Successfully deleted bucket still claims to be there (aws-cli)

0

I deleted my bucket with aws s3 rb s3://BUCKET_NAME --force and it succeeded. The bucket is also not shown in the bucket list. However, when I try to deploy my cloudformation stack (which tries to create the bucket), I receive an error, claiming the bucket is still there.

Note: When I try to delete the bucket again I receive the error fatal error: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

Markus
質問済み 1年前233ビュー
1回答
2
承認された回答

As this document indicates, creating a bucket with the same name immediately after deleting an S3 bucket may result in an error.
Please wait a while before creating it.
https://repost.aws/knowledge-center/s3-conflicting-conditional-operation

profile picture
エキスパート
回答済み 1年前
profile picture
エキスパート
レビュー済み 1年前
  • Funny they write If you must keep a bucket name, you can empty the bucket instead of deleting it., which is not handle-able by CloudFormation.

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

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

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

関連するコンテンツ