Why bucket policy does not provide IAM user to list s3 buckets even bucket policy is set for the user

0 votes

I have created bucket POC-work from the admin account, and under this policy, I have set policy like below:

{

    "Version": "2012-10-17",

    "Id": "Policy1620674317608",

    "Statement": [

        {

            "Sid": "Stmt1321974214233",

            "Effect": "Allow",

            "Principal": {

                "AWS": "arn:aws:iam::accound-id:user/iam-user"

            },

            "Action": "s3:*",

            "Resource": [

                "arn:aws:s3:::poc-work",

                "arn:aws:s3:::poc-work/*"

            ]

        }

    ]

}

When an IAM user logs in and checks for s3 service there is an error message: You don't have permissions to list buckets.

My questions are :

  •  How can I create a bucket policy that enables list s3 buckets?
  • Is it necessary to attach policy already defined browsing on IAM console and then rest of operations control with bucket policy?

Apr 23, 2022 in Others by Kichu
• 19,040 points
584 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Others

0 votes
1 answer

HTTP Error 403.14 - Forbidden - The Web server is configured to not list the contents of this directory

Try keeping this into your web config ...READ MORE

answered Feb 11, 2022 in Others by Rahul
• 9,680 points
12,939 views
0 votes
0 answers
0 votes
1 answer

Where is the documentation to refer for coinbase api integration of Etherium coin currency in php?

Hey there! Please refer to the following ...READ MORE

answered Jan 25, 2019 in Others by Omkar
• 69,220 points
844 views
–2 votes
0 answers
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,957 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,820 points
2,867 views
0 votes
2 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP