diff --git a/source/common/isb-services/cost-explorer-service.ts b/source/common/isb-services/cost-explorer-service.ts index 1eb1bc99..26f1c73b 100644 --- a/source/common/isb-services/cost-explorer-service.ts +++ b/source/common/isb-services/cost-explorer-service.ts @@ -107,15 +107,6 @@ export class CostExplorerService { Values: accounts, }, }, - { - Not: { - Dimensions: { - Key: "RECORD_TYPE", - Values: ["Credit", "Refund"], - MatchOptions: ["EQUALS"], - }, - }, - }, { Tags: { Key: tag.tagName, @@ -141,23 +132,10 @@ export class CostExplorerService { Granularity: granularity, Metrics: ["UnblendedCost"], Filter: { - And: [ - { - Dimensions: { - Key: "LINKED_ACCOUNT", - Values: accounts, - }, - }, - { - Not: { - Dimensions: { - Key: "RECORD_TYPE", - Values: ["Credit", "Refund"], - MatchOptions: ["EQUALS"], - }, - }, - }, - ], + Dimensions: { + Key: "LINKED_ACCOUNT", + Values: accounts, + }, }, GroupBy: [ { diff --git a/source/common/test/isb-services/cost-explorer-service.test.ts b/source/common/test/isb-services/cost-explorer-service.test.ts index c34d7241..5393fe3d 100644 --- a/source/common/test/isb-services/cost-explorer-service.test.ts +++ b/source/common/test/isb-services/cost-explorer-service.test.ts @@ -122,23 +122,10 @@ describe("CostExplorerService", () => { Granularity: Granularity.DAILY, Metrics: ["UnblendedCost"], Filter: { - And: [ - { - Dimensions: { - Key: "LINKED_ACCOUNT", - Values: accounts, - }, - }, - { - Not: { - Dimensions: { - Key: "RECORD_TYPE", - Values: ["Credit", "Refund"], - MatchOptions: ["EQUALS"], - }, - }, - }, - ], + Dimensions: { + Key: "LINKED_ACCOUNT", + Values: accounts, + }, }, GroupBy: [ {