Skip to content

Commit

Permalink
[COST-5044] Revert AWS HCS CCSP Price Change (#5114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgoodfred authored May 17, 2024
1 parent 7bed556 commit 8c696cd
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions koku/hcs/database/sql/reporting_aws_hcs_daily_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@ SELECT
CASE
WHEN
(
try_cast(product_vcpu AS INT) <= 8
try_cast(product_vcpu AS INT) <= 4
AND (lineitem_lineitemdescription LIKE '%Red Hat%' OR lineitem_lineitemdescription LIKE '%RHEL%')
) THEN 0.0144 * lineitem_usageamount * CAST(product_vcpu AS INT)
) THEN 0.06 * lineitem_usageamount
WHEN
(
try_cast(product_vcpu AS INT) <= 127
try_cast(product_vcpu AS INT) > 4
AND (lineitem_lineitemdescription LIKE '%Red Hat%' OR lineitem_lineitemdescription LIKE '%RHEL%')
) THEN 0.0108 * lineitem_usageamount * CAST(product_vcpu AS INT)
WHEN
(
try_cast(product_vcpu AS INT) > 127
AND (lineitem_lineitemdescription LIKE '%Red Hat%' OR lineitem_lineitemdescription LIKE '%RHEL%')
) THEN 0.0096 * lineitem_usageamount * CAST(product_vcpu AS INT)
) THEN 0.13 * lineitem_usageamount
ELSE lineitem_unblendedcost
END AS lineitem_unblendedcost,
lineitem_blendedrate,
Expand Down

0 comments on commit 8c696cd

Please sign in to comment.