Athena + CUR报告-上周创建的资源?

0

【以下的问题经过翻译处理】 如何生成最近一周创建的资源列表? 是否可以使用 Athena + CUR (类似于https://aws.amazon.com/blogs/aws-cost-management/querying-your-aws-cost-and-usage-report-using-amazon-athena/?) 来完成此操作,但同时考虑最近一周以及之前产生支出的资源呢?也许有人已经有了查询语句? :)

profile picture
专家
已提问 5 个月前16 查看次数
1 回答
0

【以下的回答经过翻译处理】 是的,我认为查询可能是类似于

'select * from cur where min(line_item_usage_start_date) > current_date - 7'

或者

'select distinct line_item_resource_id from cur where min(line_item_usage_start_date) > current_date - 7'

或者

select * from cur where line_item_resource_id in ( select distinct line_item_resource_id from cur where min(line_item_usage_start_date) > current_date - 7 )

这应该给出所有一周前创建的资源以及它们相关的细节。

profile picture
专家
已回答 5 个月前

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

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

回答问题的准则