Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add time granularity to CUR2 #1010

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions cfn-templates/data-exports-aggregation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Metadata:
Parameters:
- EnableSCAD
- RolePath
- TimeGranularity

ParameterLabels:
ManageCOH:
Expand All @@ -40,6 +41,8 @@ Metadata:
default: "Source Account Ids (Comma separated list)"
EnableSCAD:
default: "Enable Split Cost Allocation Data (SCAD) in CUR 2.0"
TimeGranularity:
default: "CUR 2.0 Granularity. Do not change."


Parameters:
Expand Down Expand Up @@ -92,8 +95,13 @@ Parameters:
Default: "yes"
RolePath:
Type: String
Default: '/'
Description: Path for roles where PermissionBoundaries can limit location
Default: '/'
TimeGranularity:
Type: String
Description: Changing of this parameter will require redeployment of this Stack, purging of data in Destination and then additional Backfill request. HOURLY is a recommended option unless your AWS invoice is more then $50M (in this case contact your TAM when installing).
Default: "HOURLY"
AllowedValues: ["HOURLY", "DAILY", "MONTHLY"]

Conditions:
EmptySourceAccountIds: !Equals [ !Ref SourceAccountIds, '']
Expand Down Expand Up @@ -427,7 +435,7 @@ Resources:
QueryStatement: !If [EnableSCAD, !FindInMap [DataExports, CUR2, SCADQuery], !FindInMap [DataExports, CUR2, DefaultQuery]]
TableConfigurations:
COST_AND_USAGE_REPORT:
TIME_GRANULARITY: "HOURLY"
TIME_GRANULARITY: !Ref TimeGranularity
INCLUDE_RESOURCES: "TRUE"
INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY: "FALSE"
INCLUDE_SPLIT_COST_ALLOCATION_DATA: !If [EnableSCAD, "TRUE", "FALSE"]
Expand Down Expand Up @@ -458,7 +466,7 @@ Resources:
QueryStatement: !If [EnableSCAD, !FindInMap [DataExports, CUR2, SCADQuery], !FindInMap [DataExports, CUR2, DefaultQuery]]
TableConfigurations:
COST_AND_USAGE_REPORT:
TIME_GRANULARITY: "HOURLY"
TIME_GRANULARITY: !Ref TimeGranularity
INCLUDE_RESOURCES: "TRUE"
INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY: "FALSE"
INCLUDE_SPLIT_COST_ALLOCATION_DATA: !If [EnableSCAD, "TRUE", "FALSE"]
Expand Down
Loading