【发布时间】: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