S3 object count using Athena CuR

0

Customer is migrating their s3 buckets from one account to another one. They have multiple accounts and each account has around 170 buckets. Many buckets have millions of objects stored. Customer is looking for a way to get the object count for each account in a single csv format, to make sure that the data is migrated correctly to new account buckets. Is there any way to get the object count using the athena query to CuR?

AWS
TejasM
已提问 4 年前500 查看次数
1 回答
0
已接受的回答

I suspect that CloudWatch metrics may be a better mechanism to create your reference file: https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html

As you'll see on that page you can use the Daily Storage Metrics to return the NumberOfObjects per bucket.

You could then write some code to iterate over the regions and buckets returning the number of objects and building your reference file.

AWS
Colin_M
已回答 4 年前

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

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

回答问题的准则