S3ポリシーが無効です。ステートメント内のどのリソースにもアクションは適用されません
環境
NetApp StorageGRID
問題
StorageGRID でバケットポリシーを設定しようとすると、次の情報が報告されます。
"S3 Policy is invalid. Action is not applicable to any resource in the statement: s3:ListBucket"
"S3 Policy is invalid. Action is not applicable to any resource in the statement: s3:ListAllMyBuckets"
上記のポリシーの例はListBucketとListAllMyBucketsのものですが、他のステートメントにも適用できます。
このエラーが報告されるステートメントの例:
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:DeleteObject",
"s3:DeleteObjectTagging",
"s3:GetObject",
"s3:GetObjectTagging",
"s3:PutObject",
"s3:PutObjectTagging",
],
"Resource": "arn:aws:s3:::<bucketname>/*"
}
]
}