2 Answers
- Newest
- Most votes
- Most comments
1
I tested with AWS CLI (aws-cli/2.14.6 Python/3.11.6 Darwin/22.6.0 exe/x86_64 prompt/off) and could observe same symptom as you mentioned. I think there would be a room for improvement for better customer experience.
For a directory bucket,
aws s3api list-objects-v2 --bucket bucketname (Working)
aws s3api list-directory-buckets (Working)
aws s3 ls (Directory bucket was not displayed.)
aws s3 ls bucketname (Working)
0
You would need to specify bucket/${BucketName} in arn of your policy.
eg:-
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3express:*"
],
"Resource": "arn:${Partition}:s3express:${Region}:${Account}:bucket/${BucketName}"
}
]
}
or you can also use - arn:${Partition}:s3express:${Region}:${Account}:bucket/*
answered 2 months ago
Relevant content
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
Thank you, this is great. But now I am even more confused as to why this does not work from Lambda.