Skip to content

Commit

Permalink
[COST-4762] Update HCS AWS Estimate pricing (#4979)
Browse files Browse the repository at this point in the history
* [COST-4762] Update HCS AWS Estimate pricing
  • Loading branch information
cgoodfred authored Apr 26, 2024
1 parent 45683f9 commit 6791b08
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions koku/hcs/database/sql/reporting_aws_hcs_daily_summary.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ SELECT
CASE
WHEN
(
try_cast(product_vcpu AS INT) <= 4
try_cast(product_vcpu AS INT) <= 8
AND (lineitem_lineitemdescription LIKE '%Red Hat%' OR lineitem_lineitemdescription LIKE '%RHEL%')
) THEN 0.06 * lineitem_usageamount
) THEN 0.0144 * lineitem_usageamount * CAST(product_vcpu AS INT)
WHEN
(
try_cast(product_vcpu AS INT) > 4
try_cast(product_vcpu AS INT) <= 127
AND (lineitem_lineitemdescription LIKE '%Red Hat%' OR lineitem_lineitemdescription LIKE '%RHEL%')
) THEN 0.13 * lineitem_usageamount
) 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)
ELSE lineitem_unblendedcost
END AS lineitem_unblendedcost,
lineitem_blendedrate,
Expand Down

0 comments on commit 6791b08

Please sign in to comment.