Reason: Error executing "ListObjectsV2"

0

I am using the same credentials used by other apps, but cannot retrieve listings from my remote office. Laravel 9- php8 error I am getting .
Unable to list contents for 'folder/myfolder/', shallow listing

Reason: Error executing "ListObjectsV2"

1 Answer
1

Hello.

Are there any more detailed error logs being output?
Are there any problems with the code syntax?
Does the IAM policy you are using have permissions set to view S3?
At a minimum, the following policies are required to view an S3 bucket.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:ListAllMyBuckets",
            "Resource": "arn:aws:s3:::*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:ListBucket",
            "Resource": "arn:aws:s3:::my-bucket"
        }
    ]
}
profile picture
EXPERT
answered 5 months ago
  • This works from other servers in our network it does not work from my home laptop, there is something to do with my ip not allowed I think but not sure how to add my ip to the policy?? ANYONE?

  • Do you have an access key and secret access key set on your home PC? If no special settings are made on the S3 side, there is no need to restrict by IP.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions