Skip to content

Commit

Permalink
add time granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
iakov-aws committed Nov 9, 2024
1 parent 958a2be commit 96ad99b
Showing 1 changed file with 11 additions and 3 deletions.
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"]

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

0 comments on commit 96ad99b

Please sign in to comment.