简体   繁体   English

AWS S3 Bucket计数

[英]AWS S3 Bucket counts

I have tried to run these commands: 我试过运行这些命令:

aws s3api list-objects --bucket bucket --profile key --output json --query "[length(Contents[])]"

and

aws s3 --profile=key ls s3://bucket/ --recursive --summarize

but what I'm curious about is that some of the objects have been marked for deletion. 但我很好奇的是,有些物品已被标记为删除。 Do these commands count the objects marked for deletion or are they excluded? 这些命令会计算标记为删除的对象还是排除在外?

commands shared here will list objects/files given in a specified path. 此处共享的命令将列出指定路径中给出的对象/文件。 these commands will not display any of the deleted objects. 这些命令不会显示任何已删除的对象。 for details refer S3 ls 有关详细信息,请参阅S3 ls

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM