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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인