From ff53051e5ac377b1f0c8c0c49499ef811b114050 Mon Sep 17 00:00:00 2001 From: Bruno Bompastor Date: Tue, 16 Dec 2014 11:05:05 +0100 Subject: [PATCH] Fixes circular dependency check and alarm action This template is not compatible with the new circular dependency check introduced in Juno. Also the alarm action needs the alarm url. Change-Id: I6fc98b3609aead581d99ab4d39dd91f39990c0a5 Closes-Bug: 1401062 --- cfn/F17/WordPress_Single_Instance_With_HA.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cfn/F17/WordPress_Single_Instance_With_HA.yaml b/cfn/F17/WordPress_Single_Instance_With_HA.yaml index 37ff3bc7..abbd1a03 100644 --- a/cfn/F17/WordPress_Single_Instance_With_HA.yaml +++ b/cfn/F17/WordPress_Single_Instance_With_HA.yaml @@ -73,7 +73,7 @@ Resources: EvaluationPeriods: '1' Threshold: '2' AlarmActions: - - {Ref: WebServerRestartPolicy} + - Fn::GetAtt: [WebServerRestartPolicy, AlarmUrl] ComparisonOperator: GreaterThanThreshold WikiDatabase: Type: AWS::EC2::Instance @@ -133,9 +133,7 @@ Resources: - - '#!/bin/sh ' - - '/opt/aws/bin/cfn-push-stats --watch ' - - {Ref: HttpFailureAlarm} - - ' --service-failure + - '/opt/aws/bin/cfn-push-stats --service-failure ' mode: '000700'