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
ESPERTO
posta 5 mesi fa20 visualizzazioni
1 Risposta
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
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande