【问题标题】:Lifecycle rule not working using MinIO service生命周期规则无法使用 MinIO 服务
【发布时间】:2022-12-14 05:46:44
【问题描述】:

我正在使用 MinIO 服务来管理 S3 存储桶。对于 S3 中的某些对象,我想设置生命周期策略。我已经使用 MinIO 控制台在 MinIO 中更新了以下策略

{
   "Version": "2012-10-17",
   "Statement": [
      {
            "Action": [
               "admin:SetTier",
               "admin:ListTier"
            ],
            "Effect": "Allow",
            "Sid": "EnableRemoteTierManagement"
      },
      {
            "Action": [
               "s3:PutLifecycleConfiguration",
               "s3:GetLifecycleConfiguration"
            ],
            "Resource": [
                        "arn:aws:s3:::*"
            ],
            "Effect": "Allow",
            "Sid": "EnableLifecycleManagementRules"
      }
   ]
}

然后我尝试从 Spring-Boot 应用程序并使用 AWS S3 客户端执行生命周期配置,我简单地尝试执行以下行 amazonS3Client.getBucketLifecycleConfiguration("testbucket");

但我收到以下错误

com.amazonaws.services.s3.model.AmazonS3Exception: A header you provided implies functionality that is not implemented (Service: Amazon S3; Status Code: 501; Error Code: NotImplemented;type here

谁能建议如何使用 MinIO 获取和放置生命周期配置?

用于生命周期管理的 MinIO 服务配置。

【问题讨论】:

    标签: amazon-web-services amazon-s3 minio


    【解决方案1】:

    看起来您正在使用已弃用的 Minio 网关。但是,当前的 Minio 版本支持此功能。您可以在此处阅读有关迁移 fs-gateway 的信息https://min.io/docs/minio/kubernetes/upstream/operations/install-deploy-manage/migrate-fs-gateway.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-10
      • 2021-09-12
      • 1970-01-01
      • 2016-07-11
      • 1970-01-01
      相关资源
      最近更新 更多