Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG Report] Deletion of the S3 bucket fails because there are still S3 objects remaining. #48

Open
nao1215 opened this issue Jan 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nao1215
Copy link
Owner

nao1215 commented Jan 30, 2024

About the problem

When the s3hub command deletes an S3 bucket, the deletion of the S3 bucket fails because there are still S3 objects remaining.

$ s3hub rm abcdef-test-dev
CHECK: delete abcdef-test-dev with objects? [Y/n] Y
 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (7/7, 129 it/s)        
delete 7 objects in pogo-test-dev
operation error S3: DeleteBucket, https response error StatusCode: 409, RequestID: MZ5QP0YRHY4C1GJW, HostID: XxZm4SSyKXDdet528dYQoTmETab8Bb+YL/E0MJx2Oy5qf8AQywZ567nnGgZS1VHzfKRt7DH7Qm4=, api error BucketNotEmpty: The bucket you tried to delete is not empty

Expected behavior

s3hub delete s3 bucket with s3 objects.

Steps to reproduce

  1. Create S3 Bucket below setteing:
  S3Bucket:
    Type: "AWS::S3::Bucket"
    DeletionPolicy: Retain
    UpdateReplacePolicy: Retain
    Properties:
      BucketName: "sample-ucket-name"
      VersioningConfiguration:
        Status: Enabled
      LifecycleConfiguration:
        Rules:
          - Id: NoncurrentVersionExpiration
            Status: Enabled
            NoncurrentVersionExpirationInDays: 45
      PublicAccessBlockConfiguration:
        BlockPublicAcls: true
        BlockPublicPolicy: true
        IgnorePublicAcls: true
        RestrictPublicBuckets: true

Environment

  • OS: macOS 13.6.3 22G436 arm64
  • Command Name & Version: s3hub v0.0.0-20240129222627-9f1107059334 (under MIT LICENSE)
@nao1215 nao1215 added the bug Something isn't working label Jan 30, 2024
@nao1215 nao1215 changed the title [BUG Report] XXX [BUG Report] Deletion of the S3 bucket fails because there are still S3 objects remaining. Jan 30, 2024
This was referenced Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant