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
gefragt vor einem Jahr230 Aufrufe
1 Antwort
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
profile picture
EXPERTE
überprüft vor einem Jahr
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen