Skip to content

feat(summary_view): Make retention window configurable - #1531

Open
NithinChandranR-AWS wants to merge 1 commit into
aws-solutions-library-samples:mainfrom
NithinChandranR-AWS:feat/summary-view-retention-window-1529
Open

feat(summary_view): Make retention window configurable#1531
NithinChandranR-AWS wants to merge 1 commit into
aws-solutions-library-samples:mainfrom
NithinChandranR-AWS:feat/summary-view-retention-window-1529

Conversation

@NithinChandranR-AWS

Copy link
Copy Markdown
Contributor

Description

Replaces the hardcoded INTERVAL '7' MONTH in summary_view.sql (lines 92-93) with a ${retention_months} substitution parameter that defaults to 7.

Customers who retain more than 7 months of CUR data (e.g. 36 months for annual analysis) can now configure the retention window during deployment without forking the SQL file.

Changes

  • cid/builtin/core/data/queries/cid/summary_view.sql: Replace hardcoded '7' with ${retention_months}
  • cid/builtin/core/data/resources.yaml: Add retention_months parameter with default '7' to the summary_view definition

Backward Compatibility

Default value is 7, preserving existing behavior for all current deployments. No action required from existing users.

Fixes #1529

Replace hardcoded INTERVAL '7' MONTH in summary_view WHERE clause with
${retention_months} substitution, defaulting to 7 for backward
compatibility. Users who retain more than 7 months of CUR data can now
set retention_months during deployment without forking the SQL.

Fixes aws-solutions-library-samples#1529
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.

Feature request: Make the summary_view retention window a substitution, not a hardcoded INTERVAL '7' MONTH

1 participant