
Aws Health Events
- 3 installs
- 29 repo stars
- Updated July 30, 2026
- aws-samples/sample-code-for-devops-agent-skills
aws-health-events is a Claude skill that retrieves and analyzes AWS Health events during incident investigation to find AWS-side events that explain observed operational issues.
About
Retrieves and analyzes AWS Health events (service issues, scheduled changes, account notifications) at the start of an incident investigation or root-cause analysis. It gathers incident context, queries the AWS Health DescribeEvents API in us-east-1, and filters by service, time, region, AZ, and status to see whether an AWS-side event explains observed symptoms. A developer or on-call engineer uses it during operational troubleshooting.
- Retrieves and analyzes AWS Health events during incident investigation
- Correlates service degradation, latency, and throttling with AWS-side events
- Filters Health events by service, time window, region, AZ, and status
Aws Health Events by the numbers
- 3 all-time installs (skills.sh)
- Ranked #1,120 of 1,435 DevOps & CI/CD skills by installs in the Skillselion catalog
- Data as of Aug 1, 2026 (Skillselion catalog sync)
aws-health-events capabilities & compatibility
Requires an AWS account with a Business/Enterprise/Unified support plan and Health API IAM permissions
- Capabilities
- incident investigation · root cause analysis · health event correlation
- Works with
- aws
- Use cases
- devops · research
- Pricing
- Bring your own API key
What aws-health-events says it does
This skill retrieves and analyzes AWS Health events (service issues, scheduled changes, and account notifications)
The AWS Health API is only available in the **us-east-1** region.
Health event data is available for up to 90 days.
npx skills add https://github.com/aws-samples/sample-code-for-devops-agent-skills --skill aws-health-eventsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 3 |
|---|---|
| repo stars | ★ 29 |
| Last updated | July 30, 2026 |
| Repository | aws-samples/sample-code-for-devops-agent-skills ↗ |
What it does
During an incident, check AWS Health events to see if an AWS-side service disruption is causing the observed symptoms.
Who is it for?
On-call incident investigation where an AWS service disruption may be the root cause
Skip if: Accounts on Basic/Developer support (no Health API access) or events older than 90 days
When should I use this skill?
Investigating an incident and observing service degradation, elevated error rates, latency spikes, throttling, or capacity issues
What you get
A filtered set of active or recent AWS Health events correlated to the incident, showing whether AWS is the root cause or a contributing factor
- Correlated AWS Health event list
- Health event summary report
By the numbers
- Health event data is available for up to 90 days
- AWS Health API is only available in us-east-1
Files
AWS Health Event Review
Use this skill when investigating an incident and you need to check for AWS-side service events that may be causing or contributing to the observed issue. Also use this skill when a user requests a summary report of AWS Health events over a configurable time period.
When to Use This Skill
Incident Investigation (automatic activation):
- An active incident may be caused by an AWS service disruption or degradation.
- You observe service degradation, elevated error rates, latency spikes,
connection failures, throttling, or capacity issues.
- You need to determine whether an AWS-side event is the root cause or a
contributing factor to the current incident.
- You want to correlate observed symptoms with known AWS Health events.
Chat Reporting (on-demand activation):
- A user requests a health event summary or report for their account.
- A user wants to review the health posture of their AWS environment over a
specific time period.
- A user asks about recent AWS service issues affecting their account or region.
Prerequisites
- The account must have an AWS Business Support+, Enterprise Support, or
Unified Operations support plan to access the AWS Health API.
- The agent must have permissions to call the following IAM actions:
health:DescribeEventshealth:DescribeEventDetailshealth:DescribeAffectedEntitieshealth:DescribeEventTypes- The AWS Health API is only available in the us-east-1 region. All API
calls must target the us-east-1 endpoint regardless of where the affected resources are located.
- Health event data is available for up to 90 days. Events older than 90 days
cannot be retrieved via the API.
---
Step 1: Gather Incident Context
Before searching Health events, extract key details from the current incident:
1. Affected AWS services — identify the service(s) experiencing issues (e.g., EC2, RDS, Lambda, ELB, ECS). 2. Timeframe — determine when the incident started and its current duration. Use ISO 8601 timestamps. 3. Affected resources — collect specific resource identifiers (instance IDs, ARNs, endpoint names, cluster names). 4. Region and availability zone — identify the AWS region and, if known, the specific availability zone(s) affected. 5. Symptoms — note the observed symptoms (latency spikes, 5xx errors, connection timeouts, throttling, capacity errors).
Use these details as filter criteria in subsequent steps.
---
Step 2: Search Health Events
Use the AWS Health API DescribeEvents operation to retrieve events matching the incident context. All calls must target the us-east-1 endpoint.
API call pattern
aws health describe-events \
--region us-east-1 \
--filter '{
"services": ["<SERVICE_CODE>"],
"startTimes": [{"from": "<ISO-8601-start>"}],
"regions": ["<affected-region>"],
"eventStatusCodes": ["open", "closed"],
"eventTypeCategories": ["issue", "scheduledChange", "accountNotification"]
}' \
--max-results 100Filtering strategies
| Strategy | How to Apply |
|---|---|
| By service | Use the services filter with the AWS Health service code (e.g., EC2, RDS, ELASTICLOADBALANCING), because service-specific events are most likely to correlate with the incident. |
| By time range | Use startTimes with a from value set to 7 days before the incident start, because events that started before the incident may still be active and causing impact. |
| By region | Use the regions filter to scope events to the affected region, because regional events are more likely to impact the specific resources under investigation. |
| By availability zone | Use the availabilityZones filter when the incident is isolated to a specific AZ, because AZ-scoped events have the highest correlation with AZ-specific failures. |
| By status | Include both open and closed statuses, because recently closed events may have caused residual impact that is still being observed. |
| By event scope | Include both ACCOUNT_SPECIFIC and PUBLIC events, because public service events affect all accounts in the region while account-specific events target your resources directly. |
Pagination handling
- Follow the
nextTokenfrom each response to retrieve subsequent pages. - Continue paginating until
nextTokenis null or a maximum of 500 events
have been collected.
- Set
maxResultsto 100 per page for efficient retrieval.
---
Step 3: Filter Relevant Events
Before retrieving full event details, filter the events returned in Step 2 to identify only those relevant to the current investigation. This avoids unnecessary DescribeEventDetails calls for events that are clearly unrelated.
Relevance filtering criteria
Evaluate each event from the DescribeEvents response using these fields (available without calling DescribeEventDetails):
| Field | Relevance Signal |
|---|---|
service | Must match one of the affected services from the incident context, or a related service from the Service Dependency Map |
eventTypeCategory | Prioritize issue events for active incidents; include scheduledChange if the incident coincides with a maintenance window |
eventTypeCode | Match against known operational event patterns (e.g., AWS_EC2_OPERATIONAL_ISSUE, AWS_RDS_MAINTENANCE) |
statusCode | Prioritize open events; include closed only if the event ended within 2 hours of the incident start |
startTime / endTime | The event's active period must overlap with the incident timeframe |
region / availabilityZone | Must match the incident's affected region or AZ |
Filtering rules
1. Keep events where the service matches an affected service or a related service from the Service Dependency Map. 2. Keep events where the active period (startTime to endTime, or to present if open) overlaps with the incident timeframe. 3. Keep events where the region or availabilityZone matches the incident's affected region/AZ. 4. Discard accountNotification events unless the incident context specifically suggests an account-level issue (e.g., abuse notification, certificate expiry). 5. Discard closed events that ended more than 2 hours before the incident started (unlikely to be contributing).
Result
After filtering, proceed to Step 4 only with the relevant subset of events. If all events are filtered out, report that no relevant Health events were found and suggest alternative investigation paths (see Step 7).
---
Step 4: Get Event Details
For each relevant event identified in Step 3, retrieve full descriptions and timelines using DescribeEventDetails.
API call pattern
aws health describe-event-details \
--region us-east-1 \
--event-arns '["<arn-1>", "<arn-2>", ..., "<arn-10>"]'Batching rules
- The API accepts a maximum of 10 event ARNs per request.
- If more than 10 relevant events need details, issue multiple batched calls of
up to 10 ARNs each until all relevant events are detailed.
Extract from each event detail
- Event description — the
latestDescriptiontext explaining the event. - Timeline — start time, end time (null if ongoing), last updated time.
- Status — current status (open, closed, upcoming).
- Service and region — confirm the affected service and region.
- Event type — the category (issue, scheduledChange, accountNotification)
and specific type code.
Handling failedSet
- The response contains a
successfulSetand afailedSet. - If any event ARNs appear in
failedSet, report the failed ARN and error
message to the operator.
- Continue processing all events from
successfulSetwithout blocking on
failures.
---
Step 5: Identify Affected Entities
For events with eventScopeCode of ACCOUNT_SPECIFIC, retrieve the list of affected resources using DescribeAffectedEntities.
Important: Only call DescribeAffectedEntities for ACCOUNT_SPECIFIC events.
PUBLIC events do not return entity data.
API call pattern
aws health describe-affected-entities \
--region us-east-1 \
--filter '{"eventArns": ["<event-arn>"]}'
--max-results 100Entity matching
When the incident context includes specific resource identifiers:
1. Retrieve all affected entities for the event (paginate up to 500 entities per event using nextToken). 2. Perform exact string matching of each entity's entityValue against the incident context resource identifiers. 3. Present matched entities in a separate section before non-matched entities. 4. Include entity status (IMPAIRED, UNIMPAIRED, UNKNOWN, PENDING) and last updated time for each entity.
Error handling
- If
DescribeAffectedEntitiesreturns an error for a specific event ARN,
report the event ARN that failed and continue processing remaining events.
---
Step 6: Correlate with Incident
Score each Health event for relevance to the current incident using the following criteria:
Relevance scoring
| Classification | Criteria | Label |
|---|---|---|
| High | Matching service + overlapping timeframe + matching affected resource (or matching region/AZ if no resource IDs available) | Likely contributing factor (if event is open) |
| Medium | Matching service + overlapping timeframe (no resource match) | Likely contributing factor (if event is open) |
| Low | Matching service only (no timeframe overlap) | Background context |
Scoring rules
- Service match: The event's service code matches one of the affected
services from the incident context.
- Timeframe overlap: The event's active period (start time through end time,
or through present if still open) intersects with the incident's timeframe (start time through end time, or through present if ongoing).
- Region/AZ match: The event's region or availability zone matches the
incident's affected region or AZ.
- Resource match: At least one affected entity's
entityValuematches a
resource identifier from the incident context.
Contributing factor labeling
- Any open event classified as High or Medium relevance SHALL be labeled as
a "likely contributing factor" in addition to its relevance classification.
- Closed events with High relevance should be noted as potential recent causes
if the incident started shortly after the event closed.
When resource identifiers are unavailable
If the incident context does not include specific resource identifiers, score relevance using only service, timeframe, and region/AZ factors:
- High: Matching service + overlapping timeframe + matching region or AZ
- Medium: Matching service + overlapping timeframe
- Low: Matching service only
---
Step 7: Present Structured Output
Present findings in a clear, structured format organized for quick comprehension and action.
Output structure
1. Summary — total events found, broken down by category and status. 2. Correlated events — grouped by event type category in this order:
- Issues (service disruptions) — present first
- Scheduled changes (maintenance) — present second
- Account notifications — present last
3. Within each group — sort by:
- Relevance classification (High → Medium → Low)
- Then by start time descending (most recent first)
4. Per event — include:
- Event type category and service
- Region and availability zone (if applicable)
- Status (open/closed/upcoming)
- Start time and end time (ISO 8601)
- Description (summarized to 256 characters max)
- Relevance classification and matching criteria
- Contributing factor label (if applicable)
5. Actionable next steps — for each correlated event, include at least one recommendation such as:
- Check specific affected resources
- Review related service limits or quotas
- Verify recent configuration changes
- Monitor the AWS Health Dashboard for updates
- Contact AWS Support if the event is ongoing
When no events are found
If no relevant Health events are identified:
- Explicitly state that no matching AWS Health events were found.
- Confirm the search parameters used (service, time range, region).
- Recommend checking other potential causes:
- Recent deployments or configuration changes
- Resource limits or quota exhaustion
- Network connectivity issues
- Application-level errors
---
Decision Tree: Event Search Strategy
Is this a chat-based health report request?
├── YES → Search the user-specified time period (default 30 days, max 90 days)
│ Organize results by category, service, and status
│ Present as a summary report
└── NO → Continue with incident investigation flow below
Is the affected AWS service known?
├── YES → Search events for that service within the past 7 days
│ ├── Events found → Proceed to Step 3 (Filter Relevant Events)
│ └── No events found → Broaden to related services (see Service Dependency Map)
│ ├── Events found → Proceed to Step 3
│ └── No events found → Expand time window to 14 days and retry
│ ├── Events found → Proceed to Step 3
│ └── No events found → Report no events found, suggest other investigation paths
└── NO → Search all services filtered by region and availability zone (past 7 days)
├── Events found → Proceed to Step 3
└── No events found → Expand time window to 14 days
├── Events found → Proceed to Step 3
└── No events found → Report no events found, suggest other investigation paths
Does the incident involve a specific availability zone?
├── YES → Include the AZ filter in all searches above
└── NO → Filter by region only---
Service Dependency Map
When the initial service-specific search returns no results, broaden the search to related services that share infrastructure dependencies:
| Primary Service | Related Services to Check |
|---|---|
| ELB / ALB / NLB | EC2, VPC, Route 53 |
| RDS | EC2, EBS |
| ECS / EKS | EC2, VPC, ELB |
| Lambda | VPC, CloudWatch |
| CloudFront | S3, Route 53 |
| API Gateway | Lambda, VPC |
| ElastiCache | EC2, VPC |
| DynamoDB | VPC (if VPC endpoints used) |
| S3 | CloudFront, VPC (if VPC endpoints used) |
| Kinesis | EC2, VPC |
Search up to 3 related services when broadening. Use the Health API service codes from the references document (e.g., ELASTICLOADBALANCING for ELB, ROUTE53 for Route 53).
---
Error Handling
| Error Condition | Agent Behavior |
|---|---|
Missing health:Describe* permissions | Report the missing permissions and specify the required IAM actions: health:DescribeEvents, health:DescribeEventDetails, health:DescribeAffectedEntities, health:DescribeEventTypes. Provide the IAM policy snippet needed. |
| Throttling (HTTP 429) | Retry with exponential backoff: wait 1s → 2s → 4s (max 3 retries). If still throttled after 3 retries, report that the Health API is currently rate-limited and recommend trying again shortly. |
| Service error (HTTP 5xx) | Report the error code and recommend the operator check the AWS Health Dashboard directly as a fallback. |
| Timeout (30 seconds) | Abort the request and report a timeout error. Suggest the operator check the Health Dashboard directly or retry with narrower filters. |
| Zero events found | Report that no events matched the specified filters. Confirm the search parameters used. Suggest broadening the search or checking other investigation paths. |
| Invalid time range (start > end) | Report the invalid time range error. Ask the operator to provide corrected timestamps. |
| DescribeEventDetails failedSet | Report the failed event ARNs and error messages. Continue processing events from the successfulSet. |
| DescribeAffectedEntities error | Report the event ARN for which entity retrieval failed. Continue processing remaining events. |
| Unknown service name (chat report) | Inform the user the service was not recognized. List services that have events in the requested time period. |
---
Tips for Effective Health Event Review
- Always check us-east-1: The Health API endpoint is only in us-east-1,
regardless of where your resources are located.
- Start narrow, then broaden: Begin with the specific affected service and
a 7-day window. Only expand if no results are found.
- Check both open and closed events: A recently closed event may still be
causing residual impact.
- Correlate with support cases: If a Health event references a service
disruption, check if related support cases exist using the support-cases skill.
- Account-specific vs public events: Account-specific events directly affect
your resources. Public events are service-wide but may still impact you.
- Look at scheduled changes: Upcoming or recent maintenance windows can
explain transient issues that resolve on their own.
audit:
ignore:
- STR-016 # README alongside SKILL.md is intentional
Changelog
1.0.0
- Initial version
[
{
"query": "How do I set up a multi-AZ deployment for my RDS instance?",
"should_trigger": false
},
{
"query": "Write a Python script to list all S3 buckets in my account",
"should_trigger": false
},
{
"query": "What is the difference between an IAM role and an IAM user?",
"should_trigger": false
},
{
"query": "How can I reduce my monthly AWS bill for EC2 instances?",
"should_trigger": false
},
{
"query": "What are the best practices for designing a VPC with public and private subnets?",
"should_trigger": false
},
{
"query": "How do I configure CloudWatch alarms for Lambda function errors?",
"should_trigger": false
},
{
"query": "Explain how to attach an IAM policy that allows read-only access to DynamoDB",
"should_trigger": false
}
]
[
{
"id": "incident-health-event-lookup",
"prompt": "I'm investigating an incident with our RDS database in us-west-2. The database started returning connection timeout errors about 2 hours ago. Check if there are any AWS Health events that could explain this.",
"expected_output": "The skill searches AWS Health events using DescribeEvents filtered by the RDS service and us-west-2 region within the past 7 days. It retrieves both account-specific and public events, then presents any matching events with their status, timeline, and description, or states that no matching events were found.",
"assertions": [
"The output calls DescribeEvents with the RDS service filter",
"The output filters events by the us-west-2 region",
"The output searches within the past 7 days from the incident start time",
"The output includes both account-specific and public event scopes",
"The output presents matching events or clearly states no events were found",
"The output does not produce an API error or permission denied message"
]
},
{
"id": "event-detail-extraction",
"prompt": "I found AWS Health events related to EC2 in us-east-1. Get me the full details for these events including descriptions, timelines, and current status.",
"expected_output": "The skill calls DescribeEventDetails with the identified event ARNs, batching up to 10 per request. For each event, it presents the event description, start time, end time, last updated time, status, service, region, and event type category.",
"assertions": [
"The output calls DescribeEventDetails to retrieve full event information",
"The output includes the event description text for each event",
"The output includes start time and end time in ISO 8601 format",
"The output includes the current status (open, closed, or upcoming) for each event",
"The output batches requests with no more than 10 event ARNs per API call",
"The output handles any failedSet entries by reporting them and continuing with successfulSet"
]
},
{
"id": "affected-entity-matching",
"prompt": "We have an account-specific Health event affecting EC2. Our incident involves instances i-0abc123def456 and i-0def789ghi012 in us-east-1. Identify which of our resources are affected by this event.",
"expected_output": "The skill calls DescribeAffectedEntities for the account-specific event and matches the returned entities against the provided instance IDs. Matched resources are presented separately with their status (IMPAIRED, UNIMPAIRED, UNKNOWN, or PENDING) and last updated time.",
"assertions": [
"The output calls DescribeAffectedEntities for the account-specific event",
"The output performs exact string matching of entity values against the incident resource identifiers",
"The output presents matched entities separately from non-matched entities",
"The output includes entity status (IMPAIRED, UNIMPAIRED, UNKNOWN, or PENDING) for each entity",
"The output includes last updated time for each affected entity"
]
},
{
"id": "relevance-correlation",
"prompt": "I'm investigating a Lambda function timeout issue in us-west-2 that started 3 hours ago. The function ARN is arn:aws:lambda:us-west-2:123456789012:function:my-processor. Several Health events were found. Correlate them with my incident and classify their relevance.",
"expected_output": "The skill scores each Health event for relevance by evaluating service match, timeframe overlap, region/AZ match, and affected resource match. Events are classified as High, Medium, or Low relevance. Open events with High or Medium relevance are labeled as likely contributing factors. Results are ordered by relevance classification then by start time descending.",
"assertions": [
"The output classifies each event as High, Medium, or Low relevance",
"The output explains the matching criteria used for each classification",
"The output orders results by relevance (High first, then Medium, then Low)",
"The output labels open events with High or Medium relevance as likely contributing factors",
"The output includes at least one actionable next step per correlated event",
"The output considers service match, timeframe overlap, and region when scoring"
]
},
{
"id": "chat-health-report",
"prompt": "Generate a summary report of all AWS Health events for my account over the past 30 days.",
"expected_output": "The skill retrieves all Health events within the past 30 days and presents a structured report organized by event type category (issues, scheduled changes, account notifications) with counts for each. The report includes a breakdown by AWS service and by event status (open, closed, upcoming), with event timelines showing start, resolution, and duration.",
"assertions": [
"The output organizes events by event type category (issues, scheduled changes, account notifications)",
"The output includes counts for each category",
"The output includes a breakdown of events by AWS service",
"The output includes a breakdown by event status (open, closed, upcoming)",
"The output covers the past 30 days as the default time period",
"The output presents event timelines with start time and resolution time for closed events"
]
},
{
"id": "no-events-found",
"prompt": "I'm investigating elevated error rates on our ECS cluster in eu-west-1. Check if there are any AWS Health events that could be causing this.",
"expected_output": "The skill searches for Health events filtered by ECS service in eu-west-1 and finds no matching events. It explicitly states no events were found, confirms the search parameters used, and suggests alternative investigation paths such as checking recent deployments, configuration changes, resource limits, or network connectivity.",
"assertions": [
"The output explicitly states that no matching AWS Health events were found",
"The output confirms the search parameters used (service, time range, region)",
"The output suggests alternative investigation paths",
"The output recommends checking recent deployments or configuration changes",
"The output does not fabricate or hallucinate health events that do not exist"
]
},
{
"id": "api-region-awareness",
"prompt": "Check AWS Health events for our DynamoDB tables experiencing throttling in ap-southeast-1.",
"expected_output": "The skill calls the AWS Health API using the us-east-1 endpoint regardless of the fact that the affected DynamoDB resources are in ap-southeast-1. The events filter includes ap-southeast-1 as the region filter to scope results to that region, but the API call itself targets us-east-1.",
"assertions": [
"The Health API call is made to the us-east-1 endpoint",
"The output does not attempt to call the Health API in ap-southeast-1",
"The output filters events by the ap-southeast-1 region where resources are located",
"The output returns relevant health event information regardless of the resource region",
"The output does not fail due to region misconfiguration"
]
},
{
"id": "broadened-search",
"prompt": "I'm investigating connection failures to our Application Load Balancer in us-east-1. The ALB started returning 503 errors 30 minutes ago. Check for any related AWS Health events.",
"expected_output": "The skill first searches for Health events filtered by the ELB service in us-east-1 within the past 7 days. Finding no results, it broadens the search to related services (EC2, VPC, Route 53) that share infrastructure dependencies with ELB. If still no results, it expands the time window to 14 days before reporting no events found.",
"assertions": [
"The output first searches for events specific to the ELB/ELASTICLOADBALANCING service",
"The output broadens to related services (EC2, VPC, Route 53) when no ELB events are found",
"The output expands the time window to 14 days if related service search also returns no results",
"The output follows the decision tree: specific service → related services → expanded time window",
"The output reports the search progression to the operator"
]
}
]
{
"skill_name": "aws-health-events",
"skill_path": "/Users/udid/AWS Work/Services/DevOps Agent/aws-devops-agent-skill-central/skills/aws-health-events",
"timestamp": "2026-05-27T13:34:33Z",
"overall_score": 0.9147,
"overall_grade": "A",
"passed": true,
"sections": {
"audit": {
"score": 100,
"grade": "A",
"passed": true,
"normalized": 1.0,
"critical": 0,
"warning": 0,
"info": 0
},
"functional": {
"overall": 0.8067,
"grade": "B",
"passed": true,
"scores": {
"outcome": 0.6792,
"process": 0.8684,
"style": 0.6792,
"efficiency": 1.0,
"overall": 0.8067
},
"cost_efficiency": {
"quality_delta": 0.3792,
"cost_delta_pct": 33.8,
"classification": "TRADEOFF",
"emoji": "\ud83d\udfe1",
"description": "Skill improves quality but increases cost"
},
"estimated_cost": {
"with_skill_per_run": {
"input_cost": 1.7e-05,
"output_cost": 0.026423,
"total_cost": 0.02644,
"model": "sonnet",
"currency": "USD"
},
"without_skill_per_run": {
"input_cost": 1.8e-05,
"output_cost": 0.019725,
"total_cost": 0.019743,
"model": "sonnet",
"currency": "USD"
},
"per_eval_pair": 0.046183,
"total_runs": 8,
"total_cost": 0.3695,
"model": "sonnet",
"currency": "USD"
}
},
"trigger": {
"pass_rate": 1.0,
"grade": "A",
"passed": true,
"total_queries": 7
}
}
}{
"skill_name": "aws-health-events",
"skill_path": "/Users/udid/AWS Work/Services/DevOps Agent/aws-devops-agent-skill-central/skills/aws-health-events",
"query_results": [
{
"query": "How do I set up a multi-AZ deployment for my RDS instance?",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 438.0,
"mean_total_tokens": 441.0
},
{
"query": "Write a Python script to list all S3 buckets in my account",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 181.0,
"mean_total_tokens": 184.0
},
{
"query": "What is the difference between an IAM role and an IAM user?",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 299.0,
"mean_total_tokens": 302.0
},
{
"query": "How can I reduce my monthly AWS bill for EC2 instances?",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 518.0,
"mean_total_tokens": 521.0
},
{
"query": "What are the best practices for designing a VPC with public and private subnets?",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 601.0,
"mean_total_tokens": 604.0
},
{
"query": "How do I configure CloudWatch alarms for Lambda function errors?",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 792.0,
"mean_total_tokens": 795.0
},
{
"query": "Explain how to attach an IAM policy that allows read-only access to DynamoDB",
"should_trigger": false,
"trigger_count": 0,
"run_count": 1,
"trigger_rate": 0.0,
"passed": true,
"mean_input_tokens": 3.0,
"mean_output_tokens": 497.0,
"mean_total_tokens": 500.0
}
],
"summary": {
"total_queries": 7,
"passed": 7,
"failed": 0,
"trigger_precision": 1.0,
"no_trigger_precision": 1.0,
"mean_total_tokens_per_run": 478.1,
"estimated_cost": {
"per_run": {
"input_cost": 9e-06,
"output_cost": 0.007127,
"total_cost": 0.007136,
"model": "sonnet",
"currency": "USD"
},
"total_runs": 7,
"total_cost": 0.05,
"model": "sonnet",
"currency": "USD"
}
},
"passed": true
}AWS Health Events Skill
This skill enables the AWS DevOps Agent to retrieve and analyze AWS Health events during incident investigation, root cause analysis, and operational troubleshooting.
Purpose
When an operational incident occurs, AWS Health events provide critical visibility into service disruptions, scheduled maintenance, and account-specific notifications that may explain or correlate with observed issues. This skill searches AWS Health events by service, time window, severity, region, and event type to surface AWS-side events as potential root causes or contributing factors.
Key Capabilities
- Retrieve open and resolved AWS Health events via the Health API
- Search and filter events by service, severity, time range, region, and event type
- Identify affected resources impacted by Health events
- Correlate Health events with current incidents to determine root cause or contributing factors
- Generate health posture reports summarizing account health over configurable time periods
Prerequisites
- IAM permissions for
health:Describe*actions (health:DescribeEvents,health:DescribeEventDetails,health:DescribeAffectedEntities,health:DescribeEventTypes) - AWS Health API access (requires AWS Business Support+, Enterprise Support, or Unified Operations support plan)
Limitations
- The AWS Health API is only available in the
us-east-1region for commercial accounts - Health event data retention is limited by the AWS Health service retention period
- API rate limits apply — the skill implements exponential backoff for throttled requests
Agent Types
This skill is used by the following agent types:
- Chat tasks — conversational health event lookup, reporting, and analysis
- Incident RCA — automated root cause analysis during active incidents
Uploading to AWS DevOps Agent
To deploy this skill to your Agent Space:
1. Zip the aws-health-events/ directory (only including allowed extensions):
cd skills
zip -r aws-health-events.zip aws-health-events/ -i '*.md' '*.txt' '*.json' '*.yaml' '*.yml' '*.xml' '*.csv' '*.tsv' '*.html' '*.htm' '*.png' '*.jpg' '*.jpeg' '*.gif' '*.svg' '*.webp' '*.pdf' -x '*/.claude/*' '*/scripts/*' '*/README.md' '*/.skilleval.yaml' '*/.skilleval.yml' '*/CHANGELOG.md' '*/evals/*'2. In the AWS DevOps Agent Operator Web App, navigate to the Skills page. 3. Click Add skill → Upload skill. 4. Drag and drop the aws-health-events.zip file (max 6 MB). 5. Select the agent types: Chat tasks and Incident RCA. 6. Click Upload.
For more details, see Uploading a skill in the AWS DevOps Agent User Guide.
How to Use This Skill
This skill is most suitable for chat and investigation. Below are sample prompts for each use-case.
Chat
- "Create a health events report for the last 30 days, including breakdowns by service and event type."
- "Show me all open AWS Health events affecting my account."
- "Are there any scheduled maintenance events for RDS in the next 7 days?"
- "Summarize all EC2 health events from the past quarter."
- "What health events have occurred in us-west-2 this month?"
- "Give me a health posture summary for my account over the last 90 days."
Investigation
- "Investigate the RDS connectivity alarm — are there any related AWS Health events?"
- "We're seeing elevated error rates on our ECS service. Check if there's an AWS-side issue."
- "Our Lambda functions are timing out. Is there an active Health event for Lambda in us-east-1?"
- "There's a latency spike on our ALB starting around 2am UTC — correlate with any Health events."
- "Multiple services in us-west-2 are degraded. Check for regional Health events."
- "The same EBS performance issue keeps recurring. Are there related Health events or scheduled changes?"
AWS Health API Reference
Quick reference for the AWS Health API operations used by this skill.
DescribeEvents
Returns a list of Health events matching specified filter criteria.
Key Parameters
| Parameter | Type | Description | Constraints |
|---|---|---|---|
filter.services | List of strings | AWS service codes to filter by (e.g., EC2, RDS) | Max 10 values |
filter.regions | List of strings | AWS regions to filter by | Max 10 values |
filter.availabilityZones | List of strings | Availability zones to filter by | Max 10 values |
filter.startTimes | List of DateTimeRange | Filter by event start time (from/to) | ISO 8601 timestamps |
filter.endTimes | List of DateTimeRange | Filter by event end time (from/to) | ISO 8601 timestamps |
filter.lastUpdatedTimes | List of DateTimeRange | Filter by last updated time | ISO 8601 timestamps |
filter.eventTypeCategories | List of strings | Event type categories to filter by | issue, scheduledChange, accountNotification |
filter.eventStatusCodes | List of strings | Event statuses to filter by | open, closed, upcoming |
filter.eventTypeCodes | List of strings | Specific event type codes | e.g., AWS_EC2_OPERATIONAL_ISSUE |
filter.entityValues | List of strings | Resource ARNs or IDs to filter by | Max 100 values |
filter.eventArns | List of strings | Specific event ARNs to retrieve | Max 10 values |
maxResults | Integer | Max events per page | 10–100 (default 10) |
nextToken | String | Pagination token | From previous response |
Response Fields
| Field | Description |
|---|---|
events[].arn | Unique event identifier (ARN) |
events[].service | AWS service namespace (e.g., EC2, RDS) |
events[].eventTypeCode | Specific event type (e.g., AWS_EC2_OPERATIONAL_ISSUE) |
events[].eventTypeCategory | Category: issue, scheduledChange, or accountNotification |
events[].region | AWS region where the event occurred |
events[].availabilityZone | Specific AZ if applicable |
events[].startTime | When the event started (ISO 8601) |
events[].endTime | When the event ended (ISO 8601); null if ongoing |
events[].lastUpdatedTime | Last update timestamp (ISO 8601) |
events[].statusCode | Current status: open, closed, or upcoming |
events[].eventScopeCode | Scope: ACCOUNT_SPECIFIC or PUBLIC |
nextToken | Pagination token for next page (null if no more results) |
---
DescribeEventDetails
Returns detailed information for one or more Health events, including full descriptions.
Key Parameters
| Parameter | Type | Description | Constraints |
|---|---|---|---|
eventArns | List of strings (required) | Event ARNs to retrieve details for | Max 10 per request |
locale | String | Language for event descriptions | e.g., en (default) |
Response Fields
| Field | Description |
|---|---|
successfulSet[].event | The event object (same fields as DescribeEvents response) |
successfulSet[].eventDescription.latestDescription | Full text description of the event |
successfulSet[].eventMetadata | Additional metadata key-value pairs |
failedSet[].eventArn | ARN of the event that failed to retrieve |
failedSet[].errorName | Error code for the failure |
failedSet[].errorMessage | Human-readable error message |
---
DescribeAffectedEntities
Returns a list of resources (entities) affected by a specific Health event.
Key Parameters
| Parameter | Type | Description | Constraints |
|---|---|---|---|
filter.eventArns | List of strings (required) | Event ARNs to get affected entities for | Max 10 values |
filter.entityValues | List of strings | Filter by specific resource ARNs or IDs | Max 100 values |
filter.entityArns | List of strings | Filter by entity ARNs | Max 100 values |
filter.lastUpdatedTimes | List of DateTimeRange | Filter by entity last updated time | ISO 8601 timestamps |
filter.statusCodes | List of strings | Filter by entity status | IMPAIRED, UNIMPAIRED, UNKNOWN, PENDING |
maxResults | Integer | Max entities per page | 10–100 (default 10) |
nextToken | String | Pagination token | From previous response |
Response Fields
| Field | Description |
|---|---|
entities[].entityValue | Resource ARN or ID |
entities[].eventArn | Associated event ARN |
entities[].awsAccountId | Account owning the resource |
entities[].lastUpdatedTime | Last status update (ISO 8601) |
entities[].statusCode | Entity status: IMPAIRED, UNIMPAIRED, UNKNOWN, or PENDING |
entities[].tags | Resource tags (key-value map) |
nextToken | Pagination token for next page (null if no more results) |
---
Common Service Codes
| Service | Health API Code |
|---|---|
| EC2 | EC2 |
| RDS | RDS |
| Lambda | LAMBDA |
| ELB | ELASTICLOADBALANCING |
| S3 | S3 |
| CloudFront | CLOUDFRONT |
| DynamoDB | DYNAMODB |
| ECS | ECS |
| EKS | EKS |
| VPC | VPC |
| Route 53 | ROUTE53 |
| IAM | IAM |
| CloudWatch | CLOUDWATCH |
| SNS | SNS |
| SQS | SQS |
| EBS | EBS |
| ElastiCache | ELASTICACHE |
| Kinesis | KINESIS |
| API Gateway | APIGATEWAY |
| SageMaker | SAGEMAKER |
---
Event Type Categories
| Category | Description |
|---|---|
issue | An AWS service issue or outage affecting resources |
scheduledChange | Planned maintenance or infrastructure change |
accountNotification | Account-specific notification (e.g., certificate expiry, abuse report) |
---
Event Statuses
| Status | Description |
|---|---|
open | Event is currently active and ongoing |
closed | Event has been resolved |
upcoming | Scheduled event that has not yet started |
---
Entity Status Codes
| Status | Description |
|---|---|
IMPAIRED | Resource is confirmed impaired by the event |
UNIMPAIRED | Resource is confirmed not impaired |
UNKNOWN | Impact status cannot be determined |
PENDING | Impact assessment is in progress |
---
Important Constraints
- API endpoint: The AWS Health API is available only in the
us-east-1
region. All API calls must target this region regardless of where the affected resources are located.
- Batch size:
DescribeEventDetailsaccepts a maximum of 10 event ARNs
per request. For more than 10 events, issue multiple batched calls.
- Pagination: All list operations are paginated. Use
nextTokenfrom the
response to retrieve subsequent pages until nextToken is null.
- Rate limiting: Standard AWS API rate limits apply. Use exponential backoff
for retries on throttling errors (HTTP 429).
- Event scope: Use
eventScopeCodeto distinguish between account-specific
events (ACCOUNT_SPECIFIC) and public service events (PUBLIC).
- Data availability: Health events are available for up to 90 days. Events
older than 90 days cannot be retrieved via the API.
- IAM permissions required:
health:DescribeEvents,
health:DescribeEventDetails, health:DescribeAffectedEntities, health:DescribeEventTypes.
- Affected entities: Only events with
eventScopeCode=ACCOUNT_SPECIFIChave
affected entities. Public events do not return entity data.
Related skills
FAQ
What support plan does the AWS Health API require?
It requires an AWS Business Support+, Enterprise Support, or Unified Operations plan to access the AWS Health API.
Which region must Health API calls target?
The AWS Health API is only available in us-east-1, so all calls must target the us-east-1 endpoint regardless of where the affected resources are.