Skip to content

feat: include AWS credits in cost accounting#98

Open
sway4em wants to merge 1 commit into
aws-solutions:mainfrom
cal-poly-dxhub:feat/include-credits-option
Open

feat: include AWS credits in cost accounting#98
sway4em wants to merge 1 commit into
aws-solutions:mainfrom
cal-poly-dxhub:feat/include-credits-option

Conversation

@sway4em
Copy link
Copy Markdown

@sway4em sway4em commented Feb 19, 2026

This PR provides an implementation for issue #97.

Summary

Removes the RECORD_TYPE filter that excludes Credit/Refund records from Cost Explorer queries, allowing organizations using AWS Credits to see actual resource consumption in cost reports.

Changes

  • cost-explorer-service.ts: Removed Credit/Refund exclusion filter from getGetCostAndUsageCommandInput() method
  • cost-explorer-service.test.ts: Updated test expectations to reflect new filter structure

Problem

Organizations that primarily use AWS Credits (educational institutions, startups with AWS Activate, etc.) see $0 in cost reports because Credit/Refund records are filtered out. This makes it difficult to track resource consumption, enforce budget thresholds, and report on credit utilization.

Testing

  • All 716 existing tests pass

Note to Maintainers

We understand that this change affects all deployments. If a configuration toggle is preferred (to let admins choose whether to include credits), we're happy to implement that instead. This PR is offered as a starting point for discussion.

Thank you for maintaining this project.

Closes #97

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms
of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to include AWS Credits in cost reporting

1 participant