diff --git a/cfn-templates/data-exports-aggregation.yaml b/cfn-templates/data-exports-aggregation.yaml index 3631f08c..f2be77aa 100644 --- a/cfn-templates/data-exports-aggregation.yaml +++ b/cfn-templates/data-exports-aggregation.yaml @@ -24,6 +24,7 @@ Metadata: Parameters: - EnableSCAD - RolePath + - TimeGranularity ParameterLabels: ManageCOH: @@ -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: @@ -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, ''] @@ -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"] @@ -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"]