How to use AWS S3 REST API ListObjects v2 with multiple parent child bucket directories

0 votes

1

What am I missing here?

I'm able to list objects no problem using the aws cli and this command:

aws s3 ls s3://bucket.mycompany.com/parent-dir1/parent-dir2/

But using the REST API via Postman, an equivalent request returns an empty response.

  • Tool: Postman
  • Method: GET
  • URl:
Feb 15, 2022 in AWS by Rahul
• 2,080 points
1,298 views

1 answer to this question.

0 votes
Here you have to use the ListObjectsV2 operation. To use this operation you must have READ access to the bucket. To use this in an IAM policy you must have permissions to perform the s3:ListBucket action. The bucket owner has this permission by default and can grant permission to others
answered Feb 15, 2022 by anonymous

Related Questions In AWS

0 votes
0 answers
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 58,100 points
5,608 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to switch between multiple accounts with AWS SDK

You can define multiple profiles in ~/.aws/credentials ...READ MORE

answered Aug 24, 2018 in AWS by Priyaj
• 58,100 points
2,158 views
+1 vote
1 answer
0 votes
1 answer

How to create Athena tables for dynamic S3 paths using AWS Crawler?

The simplest and most efficient way to ...READ MORE

answered Feb 16, 2022 in AWS by anonymous
1,096 views
0 votes
1 answer

How much will it cost to read from an S3 bucket in the same region but on different account

There will be no data transfer cost ...READ MORE

answered Feb 17, 2022 in AWS by anonymous
3,118 views
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