Skip to content

Commit

Permalink
Merge pull request #6 from hic-infra/exclude-discounts
Browse files Browse the repository at this point in the history
Exclude Discounts by default, release version 0.2.0
  • Loading branch information
manics committed Jun 18, 2024
2 parents c951826 + 6830551 commit 3adc7d0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 0.2.0 - 2024-06-18

### Breaking

- Add `Enterprise Discount Program Discount` and `Solution Provider Program Discount` to the list of default excluded record types [#6](https://github.com/hic-infra/hic-aws-costing-tools/pull/6).
To revert to the previous behaviour pass `--exclude-types Credit Refund Tax`

## 0.1.0 - 2024-04-24

Release 0.1.0
Expand Down
11 changes: 10 additions & 1 deletion hic_aws_costing_tools/aws_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@

DEFAULT_COST_TYPE = "UnblendedCost"
DEFAULT_GRANULARITY = "MONTHLY"
DEFAULT_EXCLUDE_RECORD_TYPES = ["Credit", "Refund", "Tax"]
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",
]
EXPECTED_UNIT = "USD"


Expand Down

0 comments on commit 3adc7d0

Please sign in to comment.