s3 upload issue with cloudberry explorer

842 views Asked by At

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"
     }
  ]
}
1

There are 1 answers

0
Alex On

Could you try Fiddler for traffic checking? For better understanding where your request faced with 403 error.

Let me know.