Skip to content

Commit

Permalink
Merge pull request #1018 from alphagov/BAU-enable-api-gateway-alarms
Browse files Browse the repository at this point in the history
BAU: Enable the API Gateway 5XX error alarm
  • Loading branch information
alex9smith committed Sep 12, 2023
2 parents 4719a5b + 3e960a7 commit 3041b4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,11 @@ Resources:
!If [
UseStubServices,
!Sub "https://{{resolve:ssm:/${StubsStackName}/Stub/OIDC}}",
!FindInMap [EnvironmentVariables, !Ref Environment, APIBASEURL]
!FindInMap [
EnvironmentVariables,
!Ref Environment,
APIBASEURL,
],
]
- Name: "AM_API_BASE_URL"
Value:
Expand Down Expand Up @@ -1481,7 +1485,7 @@ Resources:
Properties:
AlarmName: !Sub "${AWS::StackName}-ApiGateway5xxStatusAlarm"
AlarmDescription: "Trigger the alarm if errorThreshold exceeds 1% with the minimum of 10 invocations in 2 out of the last 5 minutes"
ActionsEnabled: false
ActionsEnabled: true
AlarmActions:
- !Sub "{{resolve:ssm:/${AlertingStackName}/SNS/HighAlertNotificationTopic/ARN}}"
ComparisonOperator: GreaterThanOrEqualToThreshold
Expand Down

0 comments on commit 3041b4d

Please sign in to comment.