Deletion of AWS S3 buckets is failing. I was using the Java SDK when it started failing. Now I have tried the same thing manually i.e. via the web console, but the same issue persists. Here is the screenshot of one of the buckets.
The error from the java code is below:
Exception in thread "main" com.amazonaws.services.s3.model.AmazonS3Exception: The specified bucket does not
exist (Service: Amazon S3; Status Code: 404; Error Code: NoSuchBucket; Request `ID: 23349323451658FC; S3 Extended Request ID: `
ggx4OT58UvYJsaGCXJxJ6cx04tsfWpoW6B0JUCeE9wDxgK6uJqMFb6d4qbPhcNGuuwDZpdEklVs=),
S3 Extended Request ID:
ggx4OT58UvYJsaGCXJxJ6cx04tsfWpoW6B0JUCeE9wDxgK6uJqMFb6d4qbPhcNGuuwDZpdEklVs=
The aws-cli actually returns the buckets in contrast to the java sdk. See the output below;
Y:\>aws s3 ls
2019-05-23 16:44:18 bucket-4a6aa2a3-d6c8-4ef8-b5ae-e02df4d6beca
2019-05-23 16:44:04 bucket-e519ae8f-0f59-4a37-87a0-c9d2d5749977
UPDATE Without any changes, running the same Java application with the same credentials, the buckets just deleted. Completely NO idea what happened.