Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 3ae2d58

Browse files
author
Ian Hill
committed
Added CloudWatch Instance replacement
1 parent 4057711 commit 3ae2d58

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

templates/quickstart-github-enterprise.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,23 @@
373373
}
374374
},
375375
"Resources": {
376+
"GHECloudWatchAlarmInstanceRecovery": {
377+
"DependsOn": "EC2Instance",
378+
"Type": "AWS::CloudWatch::Alarm",
379+
"Properties": {
380+
"AlarmDescription": "Trigger a recovery when instance status check fails for 10 consecutive minutes.",
381+
"Namespace": "AWS/EC2",
382+
"MetricName": "StatusCheckFailed_System",
383+
"Statistic": "Minimum",
384+
"Period": "60",
385+
"EvaluationPeriods": "10",
386+
"ComparisonOperator": "GreaterThanThreshold",
387+
"Threshold": "0",
388+
"TreatMissingData": "breaching",
389+
"AlarmActions": [ { "Fn::Join": ["", ["arn:aws:automate:", { "Ref": "AWS::Region" }, ":ec2:recover"]] } ],
390+
"Dimensions": [{ "Name": "InstanceId", "Value": { "Ref": "EC2Instance"} }]
391+
}
392+
},
376393
"EC2Instance": {
377394
"Metadata": {
378395
"AWS::CloudFormation::Init": {

0 commit comments

Comments
 (0)