@@ -120,14 +120,14 @@ Mappings:
120120 eu-west-3 : {CodeBucket: aws-managed-cost-intelligence-dashboards-eu-west-3 }
121121 sa-east-1 : {CodeBucket: aws-managed-cost-intelligence-dashboards-sa-east-1 }
122122 us-east-1 : {CodeBucket: aws-managed-cost-intelligence-dashboards-us-east-1 }
123- us-east-2 : {CodeBucket: aws-managed-cost-intelligence -dashboards-us-east-2 }
123+ us-east-2 : {CodeBucket: aws-managed-cost-intel ligence -dashboards-us-east-2 }
124124 us-west-1 : {CodeBucket: aws-managed-cost-intelligence-dashboards-us-west-1 }
125125 us-west-2 : {CodeBucket: aws-managed-cost-intelligence-dashboards-us-west-2 }
126126 StepFunctionCode :
127127 main-state-machine-v4 : {TemplatePath: cfn/data-collection/source/step-functions/main-state-machine-v4.json}
128128 crawler-v2 : {TemplatePath: cfn/data-collection/source/step-functions/crawler-state-machine-v2.json}
129129 standalone-v2 : {TemplatePath: cfn/data-collection/source/step-functions/standalone-state-machine-v2.json}
130- health-detail-state-machine-v2-1 : {TemplatePath: cfn/data-collection/source/step-functions/health-detail-state-machine-v2-1 .json}
130+ health-detail-state-machine-v2 : {TemplatePath: cfn/data-collection/source/step-functions/health-detail-state-machine-v2.json}
131131
132132Parameters :
133133 DestinationBucket :
@@ -897,14 +897,26 @@ Resources:
897897 - s3:GetObject
898898 - s3:PutObject
899899 Resource : !Sub '${S3Bucket.Arn}/*'
900- - PolicyName : " CloudWatch-ErrorLogging " # Used for logging processing errors to CloudWatch
900+ - PolicyName : " CloudWatchErrorLogging " # Used for logging processing errors to CloudWatch
901901 PolicyDocument :
902902 Version : " 2012-10-17"
903903 Statement :
904904 - Effect : " Allow"
905905 Action :
906906 - cloudwatch:PutMetricData
907907 Resource : ' *'
908+ - PolicyName : " CloudFormationStackVersionRead" # Used for reading the deployed version number of the stack
909+ PolicyDocument :
910+ Version : " 2012-10-17"
911+ Statement :
912+ - Effect : " Allow"
913+ Action :
914+ - cloudformation:ListStacks
915+ Resource : ' *'
916+ - Effect : " Allow"
917+ Action :
918+ - cloudformation:DescribeStacks
919+ Resource : !Ref "AWS::StackId"
908920
909921 StepFunctionExecutionRoleInvokeAccountCollectorPolicy :
910922 Type : ' AWS::IAM::Policy'
@@ -984,6 +996,8 @@ Resources:
984996 - { Name: mainexeuuid, Type: string }
985997 - { Name: subuuid, Type: string }
986998 - { Name: service, Type: string }
999+ - { Name: stackversion, Type: string }
1000+ - { Name: subversion, Type: string }
9871001 InputFormat : org.apache.hadoop.mapred.TextInputFormat
9881002 OutputFormat : org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
9891003 Location : !Sub "s3://${DestinationBucket}${AWS::AccountId}/logs/modules/"
@@ -1022,6 +1036,7 @@ Resources:
10221036 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
10231037 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
10241038 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1039+ StackID : !Ref "AWS::StackId"
10251040
10261041 RightsizeModule :
10271042 Type : AWS::CloudFormation::Stack
@@ -1043,6 +1058,7 @@ Resources:
10431058 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
10441059 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
10451060 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1061+ StackID : !Ref "AWS::StackId"
10461062
10471063 CostAnomalyModule :
10481064 Type : AWS::CloudFormation::Stack
@@ -1065,6 +1081,7 @@ Resources:
10651081 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
10661082 LambdaManageGlueTableARN : !GetAtt LambdaManageGlueTable.Arn
10671083 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1084+ StackID : !Ref "AWS::StackId"
10681085
10691086 SupportCasesModule :
10701087 Type : AWS::CloudFormation::Stack
@@ -1086,6 +1103,7 @@ Resources:
10861103 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
10871104 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
10881105 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1106+ StackID : !Ref "AWS::StackId"
10891107
10901108 BackupModule :
10911109 Type : AWS::CloudFormation::Stack
@@ -1107,6 +1125,7 @@ Resources:
11071125 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
11081126 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
11091127 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1128+ StackID : !Ref "AWS::StackId"
11101129
11111130 InventoryCollectorModule :
11121131 Type : AWS::CloudFormation::Stack
@@ -1134,6 +1153,7 @@ Resources:
11341153 - RegionsInScopeIsEmpty
11351154 - !Sub " ${AWS::Region}"
11361155 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1156+ StackID : !Ref "AWS::StackId"
11371157
11381158 PricingModule :
11391159 Type : AWS::CloudFormation::Stack
@@ -1157,6 +1177,7 @@ Resources:
11571177 - RegionsInScopeIsEmpty
11581178 - !Sub " ${AWS::Region}"
11591179 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1180+ StackID : !Ref "AWS::StackId"
11601181
11611182 ComputeOptimizerModule :
11621183 Type : AWS::CloudFormation::Stack
@@ -1182,6 +1203,7 @@ Resources:
11821203 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
11831204 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
11841205 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1206+ StackID : !Ref "AWS::StackId"
11851207
11861208 EcsChargebackModule :
11871209 Type : AWS::CloudFormation::Stack
@@ -1208,6 +1230,7 @@ Resources:
12081230 - RegionsInScopeIsEmpty
12091231 - !Sub " ${AWS::Region}"
12101232 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1233+ StackID : !Ref "AWS::StackId"
12111234
12121235 RDSUsageModule :
12131236 Type : AWS::CloudFormation::Stack
@@ -1234,6 +1257,7 @@ Resources:
12341257 - RegionsInScopeIsEmpty
12351258 - !Sub " ${AWS::Region}"
12361259 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1260+ StackID : !Ref "AWS::StackId"
12371261
12381262 EUCUsageModule :
12391263 Type : AWS::CloudFormation::Stack
@@ -1260,6 +1284,7 @@ Resources:
12601284 - RegionsInScopeIsEmpty
12611285 - !Sub " ${AWS::Region}"
12621286 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1287+ StackID : !Ref "AWS::StackId"
12631288
12641289 OrgDataModule :
12651290 Type : AWS::CloudFormation::Stack
@@ -1281,6 +1306,7 @@ Resources:
12811306 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
12821307 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
12831308 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1309+ StackID : !Ref "AWS::StackId"
12841310
12851311 BudgetsModule :
12861312 Type : AWS::CloudFormation::Stack
@@ -1302,6 +1328,7 @@ Resources:
13021328 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
13031329 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
13041330 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1331+ StackID : !Ref "AWS::StackId"
13051332
13061333 TransitGatewayModule :
13071334 Type : AWS::CloudFormation::Stack
@@ -1328,6 +1355,7 @@ Resources:
13281355 - RegionsInScopeIsEmpty
13291356 - !Sub " ${AWS::Region}"
13301357 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1358+ StackID : !Ref "AWS::StackId"
13311359
13321360 AWSFeedsModule :
13331361 Type : AWS::CloudFormation::Stack
@@ -1347,6 +1375,7 @@ Resources:
13471375 StepFunctionTemplate : !FindInMap [StepFunctionCode, standalone-v2, TemplatePath]
13481376 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
13491377 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1378+ StackID : !Ref "AWS::StackId"
13501379
13511380 HealthEventsModule :
13521381 Type : AWS::CloudFormation::Stack
@@ -1368,7 +1397,8 @@ Resources:
13681397 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
13691398 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
13701399 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1371- DetailStepFunctionTemplate : !FindInMap [StepFunctionCode, health-detail-state-machine-v2-1, TemplatePath]
1400+ DetailStepFunctionTemplate : !FindInMap [StepFunctionCode, health-detail-state-machine-v2, TemplatePath]
1401+ StackID : !Ref "AWS::StackId"
13721402
13731403 LicenseManagerModule :
13741404 Type : AWS::CloudFormation::Stack
@@ -1390,6 +1420,7 @@ Resources:
13901420 StepFunctionTemplate : !FindInMap [StepFunctionCode, main-state-machine-v4, TemplatePath]
13911421 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
13921422 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1423+ StackID : !Ref "AWS::StackId"
13931424
13941425 ServiceQuotasModule :
13951426 Type : AWS::CloudFormation::Stack
@@ -1416,6 +1447,7 @@ Resources:
14161447 - RegionsInScopeIsEmpty
14171448 - !Sub " ${AWS::Region}"
14181449 - !Join [ '', !Split [ ' ', !Ref RegionsInScope ] ] # remove spaces
1450+ StackID : !Ref "AWS::StackId"
14191451
14201452 QuickSightModule :
14211453 Type : AWS::CloudFormation::Stack
@@ -1435,6 +1467,7 @@ Resources:
14351467 StepFunctionTemplate : !FindInMap [StepFunctionCode, standalone-v2, TemplatePath]
14361468 StepFunctionExecutionRoleARN : !GetAtt StepFunctionExecutionRole.Arn
14371469 SchedulerExecutionRoleARN : !GetAtt SchedulerExecutionRole.Arn
1470+ StackID : !Ref "AWS::StackId"
14381471
14391472 AccountCollector :
14401473 Type : AWS::CloudFormation::Stack
0 commit comments