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
asked a year ago225 views
1 Answer
2
Accepted Answer

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
EXPERT
answered a year ago
profile picture
EXPERT
reviewed a year ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions