Assuming you have set up all the other components for the trivia game already (including chat bot, backend service, static site, and canaries), these instructions set up Amazon CloudWatch composite alarms to notify you if any of these components has issues.
First, create an SNS topic for notifications about the composite alarms.
aws sns create-topic --name reinvent-trivia-notifications --region us-east-1
To subscribe an email address to receive notifications about alarms, follow the instructions for subscribing via email to the SNS topic on this page.
To create a chat bot that notifies you about alarms in Slack or Chime, follow the instructions for connecting AWS Chat Bot to the SNS topic on this page.
aws cloudformation deploy \
--region us-east-1 \
--template-file template.yaml \
--stack-name TriviaGameCompositeAlarmTest \
--parameter-overrides Stage=Test \
--tags project=reinvent-trivia
aws cloudformation deploy \
--region us-east-1 \
--template-file template.yaml \
--stack-name TriviaGameCompositeAlarmProd \
--parameter-overrides Stage=Prod \
--tags project=reinvent-trivia