Amazon CloudFormation Stack Status

Amazon.AmazonWebServices.UnitMonitor.StackStatusState (UnitMonitor)

It is a monitor for CloudFormation Stack Status

Knowledge Base article:

Summary

It is a script three-state monitor which is used for CloudFormation Stack Status. It switches state depending on CloudFormation Stack Status.

Monitor is in Healthy state when Amazon CloudFormation Stack has next statuses:

Monitor is in Warning state when Amazon CloudFormation Stack has next statuses:

Monitor is in Error state when Amazon CloudFormation Stack has next statuses:

Causes

This monitor changes state due to changes in status of CloudFormation Stack.

Resolutions

Investigate reason why Amazon CloudFormation Stack becomes in one of states CREATE_FAILED, DELETE_FAILED or UPDATE_ROLLBACK_FAILED.

Element properties:

TargetAmazon.AmazonWebServices.CloudFormationStackHealth
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAmazon.AmazonWebServices.MonitorType.StackStatusThreeStateType
RemotableTrue
AccessibilityPublic
Alert Message
Amazon CloudFormation Stack Status Alert
The CloudFormation Stack '{0}' is in critical state
RunAsDefault

Source Code:

<UnitMonitor ID="Amazon.AmazonWebServices.UnitMonitor.StackStatusState" Target="Amazon.AmazonWebServices.CloudFormationStackHealth" ParentMonitorID="Health!System.Health.AvailabilityState" TypeID="Amazon.AmazonWebServices.MonitorType.StackStatusThreeStateType" Remotable="true" Priority="Normal" ConfirmDelivery="false" Accessibility="Public" Enabled="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Amazon.AmazonWebServices.UnitMonitor.StackStatusState.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Amazon.AmazonWebServices.CloudFormationStackHealth"]/StackName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<WorkFlowName>CloudFormationStackHealthUnitMonitor</WorkFlowName>
<StartTimeInSeconds>120</StartTimeInSeconds>
<IntervalTimeInSeconds>900</IntervalTimeInSeconds>
<StackId>$Target/Property[Type='Amazon.AmazonWebServices.CloudFormationStackHealth']/StackId$</StackId>
<StackName>$Target/Property[Type='Amazon.AmazonWebServices.CloudFormationStackHealth']/StackName$</StackName>
<RegionName>$Target/Property[Type='Amazon.AmazonWebServices.Component']/RegionName$</RegionName>
</Configuration>
</UnitMonitor>