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ヶ月前20ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン