diff --git a/scripts/aws/cfn/microservice.yml b/scripts/aws/cfn/microservice.yml index b99bbe3c..09f90e70 100644 --- a/scripts/aws/cfn/microservice.yml +++ b/scripts/aws/cfn/microservice.yml @@ -160,3 +160,20 @@ Resources: WAFRuleVendors: "AWS, AWS, AWS, AWS" WAFRuleNames: "AWSManagedRulesBotControlRuleSet, AWSManagedRulesKnownBadInputsRuleSet, AWSManagedRulesAdminProtectionRuleSet, AWSManagedRulesCommonRuleSet" APIGatewayARNs: !GetAtt MandateMicroservicePublicWebAPI.Outputs.APIGatewayARN + + MandateMicroserviceCloudWatchDashboard: + Type: AWS::CloudFormation::Stack + Properties: + TemplateURL: !Sub "${TemplateBucketBaseUrl}/fragments/microservice-cloudwatch-dashboard.yaml" + Parameters: + DashboardName: !Sub "${ProjectName}-mandate" + DynamoDBArns: !Join + - ',' + - - !Ref MandatesDynamoTableArn + - !Ref MandatesDynamoTableHistoryArn + RestApiStageArns: !Join + - ',' + - - !GetAtt MandateMicroservicePublicWebAPI.Outputs.RestApiStageArn + RestApiNames: !Join + - ',' + - - !GetAtt MandateMicroservicePublicWebAPI.Outputs.RestApiName