aws cli works to list the folder, and I am able to download files from inside the folder
aws s3 ls
aws s3 cp
here is my policy, anything I am missing ?
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowObjectActionsInCustomerPrefix",
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": "arn:aws:s3:::mybucket/folder/*"
},
{
"Sid": "AllowListBucketInCustomerPrefix",
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
],
"Resource": "arn:aws:s3:::mybucket",
"Condition": {
"StringLike": {
"s3:prefix": "folder/*"
}
}
},
{
"Sid": "AllowAssumeRole",
"Effect": "Allow",
"Action": "sts:AssumeRole",
"Resource": "arn:aws:iam::MYACCOUNTID:role/mycustomer-databricks-access"
}
]
}