Latest AWS CLI does not see S3 Express One Zone buckets

0

I installed the latest AWS CLI. The output of aws --version:

aws-cli/2.14.5 Python/3.11.6 Linux/5.10.16.3-microsoft-standard-WSL2 exe/x86_64.ubuntu.22 prompt/off

After configuring, aws s3 ls lists my regular S3 buckets, but does not list the newly created S3 Express One Zone bucket. Specifying --region us-east-1 explicitly does not help.

I added the following inline policy to the user:

{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Effect": "Allow",
			"Action": [
				"s3express:*"
			],
			"Resource": "*"
		}
	]
}

What else could I be missing?

P.S. Not sure if related, but in the Console, the "Find objects by prefix" box is grayed out for my S3 Express One Zone buckets.

已提问 6 个月前439 查看次数
1 回答
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)
AWS
Minux
已回答 6 个月前
profile pictureAWS
专家
已审核 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则