Skip to content

Commit

Permalink
Switch to including Usage only, instead of exluding some cost types
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Aug 29, 2024
1 parent aaa2a76 commit 0da07fb
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions hic_aws_costing_tools/aws_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@

DEFAULT_COST_TYPE = "UnblendedCost"
DEFAULT_GRANULARITY = "MONTHLY"
# Previously we excluded these types by default. Now we just include Usage instead.
DEFAULT_EXCLUDE_RECORD_TYPES = [
"Credit",
"Refund",
"Tax",
# These two aren't documented on
# https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html#cost-categories-terms
# but were confirmed in AWS Support ticket 171570162800825
"Enterprise Discount Program Discount",
"Solution Provider Program Discount",
# "Credit",
# "Refund",
# "Tax",
# # These two aren't documented on
# # https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html#cost-categories-terms
# # but were confirmed in AWS Support ticket 171570162800825
# "Enterprise Discount Program Discount",
# "Solution Provider Program Discount",
]
DEFAULT_INCLUDE_RECORD_TYPES = []
# https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-cost-categories.html#cost-categories-terms
DEFAULT_INCLUDE_RECORD_TYPES = ["Usage"]
EXPECTED_UNIT = "USD"


Expand Down

0 comments on commit 0da07fb

Please sign in to comment.