Skip to content

Commit 7ab7c16

Browse files
committed
remobed not needed database ref
1 parent 8496dd6 commit 7ab7c16

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

data-collection/deploy/module-inventory.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,6 @@ Resources:
14201420
Description: Identifies snapshots connected to AMI's with CUR data
14211421
Name: inventory_snapshot_connected_to_ami_with_CUR
14221422
QueryString: |
1423-
14241423
with latest_snapshot as (
14251424
select
14261425
max(date_parse(collection_date, '%Y-%m-%d %T')) as snapshot_collection_date
@@ -1442,14 +1441,12 @@ Resources:
14421441
FROM optimization_data.inventory_snapshot_data
14431442
INNER JOIN latest_snapshot ON latest_snapshot.snapshot_collection_date = date_parse(collection_date, '%Y-%m-%d %T')
14441443
),
1445-
1446-
14471444
snapshot_costs as(
14481445
SELECT
14491446
SPLIT(line_item_resource_id,'/')[2] as snapshot_cur_id,
14501447
SUM(CAST(line_item_unblended_cost AS DECIMAL(16,8))) AS sum_line_item_unblended_cost
14511448
FROM
1452-
${DatabaseName}.cur2
1449+
cid_data_export.cur2
14531450
WHERE
14541451
product['product_name'] = 'Amazon Elastic Compute Cloud'
14551452
AND line_item_usage_type LIKE '%%EBS%%Snapshot%%'

0 commit comments

Comments
 (0)