s3:ListBucket Does not work with S3 Console other than root
Applies to
- NetApp StorageGRID
- S3 Console
Issue
The below aws cli works, but with S3 Console it only works with root.
{
"Statement": [
{
"Sid": "AllowListBucketOfASpecificUserPrefix",
"Effect": "Allow",
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::testaccess",
"Condition": {
"StringLike": {
"s3:prefix": "${aws:username}"
}
}
}
]
}