I created a new bucket test1 and it has two folders upload and download.Below is my policy attached to a user. i connected using aws cli with access and secret access keys and was successfully able to upload a document to s3://test1/upload/. Using cloudberry explorer when i try to upload to s3://test1/upload/ folder it fails with 403 forbidden error. I am using the same keys to connect to aws cli and cloudberry but not sure what is causing the issue.Can any one please help with this.
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "s3:ListAllMyBuckets",
"Resource": "arn:aws:s3:::*",
"Effect": "Allow"
},
{
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::test1",
"Effect": "Allow",
"Condition": {
"StringEquals": {
"s3:prefix": [
"",
"/",
"download/",
"download/*",
"upload/",
"upload/*"
]
}
}
},
{
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::test1/download/*",
"Effect": "Allow"
},
{
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "arn:aws:s3:::test1/upload/*",
"Effect": "Allow"
}
]
}