Lesson 4 of 4 Amazon EventBridge and AWS Health

Responding to AWS Health Events

This lesson explains how AWS Health reports events that AWS knows will affect your resources, such as scheduled maintenance and instance retirements, and how to automate responses. The AWS Health Dashboard was added to the SOA-C03 in-scope list in version 1.1 of the exam guide.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish service health from account health.
  • Automate responses to Health events with EventBridge.
  • Distinguish AWS Health from CloudWatch and Trusted Advisor.

Service health and account health

The AWS Health Dashboard has two views. Service health is public and shows the status of AWS services in every Region. Your account health is personalised: it shows open issues, scheduled changes and other notifications that affect resources in your account, such as an EC2 instance scheduled for retirement because of degraded hardware, required RDS maintenance, an expiring ACM certificate or a Lambda runtime approaching deprecation. Each event lists the affected resources. Events are categorised as issue, scheduled change or account notification.

With AWS Organizations, organisational view lets the management account or a delegated administrator see Health events for all member accounts in one place. The AWS Health API is available to accounts with Business Support+, Enterprise Support or Unified Operations plans.

Sort into groups

Which Health view?

Exam skills 1.2.2

Decide where each piece of information appears in the AWS Health Dashboard.

Log in to try this activity Interactive activities are free with an account.

Automating responses to Health events

AWS Health sends events to EventBridge with source aws.health. Rules can match on service, event type code (for example AWS_EC2_INSTANCE_RETIREMENT_SCHEDULED) and category, and route events to SNS, chat channels, ticketing systems or automation. A common automation stops and starts an EBS-backed instance scheduled for retirement during a maintenance window, which moves it to healthy hardware before AWS retires the host. Health events can also be aggregated centrally by forwarding them to a central event bus.

{
  "source": ["aws.health"],
  "detail-type": ["AWS Health Event"],
  "detail": {
    "service": ["EC2"],
    "eventTypeCategory": ["scheduledChange"],
    "eventTypeCode": ["AWS_EC2_INSTANCE_RETIREMENT_SCHEDULED"]
  }
}

The following diagram shows the retirement automation described above.

Automating a response to an AWS Health event. AWS Health publishes a scheduled retirement event to EventBridge. A rule matching AWS_EC2_INSTANCE_RETIREMENT_SCHEDULED starts an automation that stops and starts the EBS-backed instance during a maintenance window, which moves it to healthy hardware, and notifies the team.
Instances with instance store root volumes cannot be moved this way and must be replaced instead.

Health compared with other signals

AWS Health is about AWS-side events; CloudWatch is about your resources' behaviour; Trusted Advisor is about your configuration against best practices. The following table summarises the difference.

ServiceAnswers the question
AWS Health DashboardIs AWS doing something, or having a problem, that affects my resources?
Amazon CloudWatchHow are my resources and applications behaving right now?
AWS Trusted AdvisorDoes my configuration follow best practices for cost, security, resilience and performance?
AWS ConfigWhat is my resources' configuration, how has it changed, and is it compliant?
Scenario questions

Health or another signal?

Exam skills 1.2.2 · 1.2.1

Choose the signal that answers each operational question.

Log in to try this activity Interactive activities are free with an account.
Worked example

Handling instance retirement

An operations team receives several instance retirement notices a month and occasionally misses one, causing an outage when AWS stops the instance. They create an EventBridge rule for AWS_EC2_INSTANCE_RETIREMENT_SCHEDULED that sends the event to an SNS topic for visibility and to a Systems Manager Automation runbook. The runbook checks that the instance is EBS-backed and not in an Auto Scaling group, creates an AMI as a safety backup, and stops and starts the instance during the next maintenance window. Instances in Auto Scaling groups are simply terminated so the group replaces them.

Check yourself

How can Health events from all accounts in an organisation be seen in one place?

Show answer

Enable the organisational view of AWS Health.

Exam Tips

Remember for the exam

  • Your account health shows events that affect your resources; service health is public.
  • Organizational view aggregates Health events across accounts.
  • Automate Health events with EventBridge rules on source aws.health.
  • Instance retirement: stop and start an EBS-backed instance to move it to new hardware.