Single pane of glass for all your Health events across different accounts, regions and organizations.
- What's New?
- Solution Architecture
- Modules
- Prerequisites
- Installation
- Update Metadata
- Backfill HealthEvents
- Setup Validation
- Troubleshooting
NEW: Heidi now presents an efficient mechanism for data collection, visualization, and notifications. Operating on an event-driven model, Heidi simplifies the collection of data from various AWS services across numerous accounts within multiple AWS organizations. Heidi generates QuickSight dashboard that is designed to streamline the monitoring of AWS events in a user-friendly format, enabling customers to conveniently access a comprehensive overview without the need to log in to each individual AWS account.
Heidi consists of following Modules.
- Health Module (Unified view of Upcoming events, Planned events(EOL) scheduled events and issues across all AWS Accounts and AWS Organizations)
- Notification Module (Powered by AWSChat bot to get Notification on Slack or Teams)
HEIDI Data Collection Framework enables you to collect data from different accounts, regions and organizations. The following diagram illustrates a multi-account structure. The DataCollection Account refers to the account which will display the unified Amazon QuickSight dashboard, and will receive events routed from the current account as well as all other accounts within your AWS Organizations. The link accounts refer to any accounts other than the DataCollection Account, routing enriched events to the DataCollection Account. The DataCollection architecture consists of an AWS EventBridge custom bus, an AWS EventBridge rule, an AWS Lambda function and Amazon S3 bucket. The presentation layer includes an Amazon Quicksight dashboard and Amazon Athena as the query engine.
- AWS services generate events, which are sent to the default event bus in member/linked accounts.
- A corresponding Event Bridge rule on the default event bus directs events to a centralized bus upon pattern matching.
- The centralized event bus then routes the events to Kinesis.
- Kinesis Data Firehose processes and stores the events in S3 buckets.
- Athena queries the S3 buckets.
- QuickSight provides insights into the events.
- To backfill your existing health events, the solution use AWS Health API. You need to have a Business Support, Enterprise On-Ramp or Enterprise Support plan from AWS Support in order to use this API.
- Sign up for QuickSight if you have never used it in the Data Collection account. To use the forecast capability in QuickSight, sign up for the Enterprise Edition.
- Verify QuickSight service has access to Amazon Athena. To enable, go to security and permissions under manage QuickSight.
- AWS Health Event Dashboard will use SPICE to hold data. Go to SPICE capacity under manage QuickSight and verify you have required space.
In this section, we will guide you through configuring HEIDI for AWS Health Events in both the Data Collection and Member accounts. Our recommendation is to deploy HEIDI in a delegated health admin account so that it can automatically receive feeds from all other accounts within your organization without any additional setup. You can designate up to 5 linked accounts as delegated health admin accounts within your AWS organization. To register an account as a delegated health admin, please follow these instructions
The setup script provided in this repo will set up all the necessary components required to receive AWS health events from other accounts and other regions. This can be your payer/organization or any other linked/member AWS account which you designate to receive AWS Health data from other HEIDI Member accounts and regions.
-
To start, log in to your AWS console and launch AWS CloudShell and clone aws-health-events-insight repo. You can use your local environment provided that you have assumed a role with necessary permissions to deploy the solution.
git clone https://github.com/aws-samples/aws-health-events-insight.git
-
Go to
aws-health-events-insight
directory and runOneClickSetup.py
and provide account specific inputs. The setup script will generate a CloudFormation stack to deploy all necessary AWS resources, including the QuickSight dashboard.cd aws-health-events-insight/src/Setup python3 OneClickSetup.py
-
Once CloudFormation status changes to CREATE_COMPLETE (about 10-15 minutes), go to QuickSight Analysis and verify the initial deployment.
You can now receive a feed of AWS Health events on Amazon EventBridge from all accounts within your organization in AWS Organizations using organizational view and delegated administrator. With this feature, if you are deploying HEIDI in the health delegated administrator account, it will ingest AWS Health events from all other accounts and you dont have to run this setup.
Note: If HEIDI is deployed in the health delegated admin account, you dont have to run member setup in any other linked accounts across the organization. This step can be skipped. However, if HEIDI is not deployed in the health delegated admin account, or if the account is outside your AWS organization, you must complete this setup to enable those accounts to send data feeds to the HEIDI data collection account.
If you have additional Payer/Organization IDs, you are also required to run member setup within the delegated health admin account for each additional Payer.
-
Setup AWS credentials for DataCollection Account. Or, log in to your AWS console and launch AWS CloudShell.
-
Go to
aws-health-events-insight
directory and runOneClickSetup.py
and selectMember Setup
provide necessary inputs.cd aws-health-events-insight/src/Setup python3 OneClickSetup.py
- In CloudFormation console, create a StackSet with new resources from the template file HealthModuleCollectionSetup.yaml.
- Input variables
- Select deployment targets (Deploy to OU or deploy to organization).
- Select regions to deploy.
- Submit.
Note: If you are NOT deploying HEIDI in the health delegated admin account, you MUST complete Member Setup for each Link Account and Region for which you want to receive events. To receive global events, you must create Member account/region setup for the US East (N. Virginia) region and US West (Oregon) Region as the backup region if needed.
This is an optional step. You can map AWS AccountIDs with Account Name and Account Tags (AppID, Env, etc.)
-
From your Payer/Organization account, go to AWS Organizations and export the account list. If you don't have access or can't get the export list, you can create one from this sample file.
-
For Account Tag, edit the account list CSV file and add the Tag field as shown below.
-
Important: Upload the file to a specific Amazon S3 location so that QuickSight dataset can join the data and create mapping.
Send a mock event to test setup.
- Go to EventBridge console and choose default event bus. (You can choose any member account or region) and click the Send events button.
- Important Put the Event source and Detail type as
heidi.health
, otherwise the rule will discard the mock event. - Copy the entire content from MockEvent.json and paste it in the Event detail field.
- Click Send.
You will see the event in Amazon S3. For the mock event to reflect in QuickSight sooner, you can refresh the QuickSight dataset manually.
Option 1: Manual backfill for individual Account
By default, Heidi does not automatically backfill older health events. However, you can manually perform this task using the HealthEventBackFill.py script. You need to run this Python script in each account where backfill is required.
Go to aws-health-events-insight
directory and run HealthEventBackFill.py
and provide necessary inputs.
cd aws-health-events-insight/src/Setup/utils
python3 HealthEventBackFill.py
Ensure to execute this script in the specific AWS account for which you intend to backfill the events.
Option 2: Bulk Backfill across AWS Organization/Organizational Unit (OU)
- In CloudFormation console, create a StackSet with new resources from the template file OrgHealthEventBackfill.yaml.
- Input Centerlized Heidi DataCollection Account, DataCollection Region and ResourcePrefix.
- Select deployment targets (Deploy to OU or deploy to organization).
- Select us-east-1 region to deploy.
- Submit.
Once stacksets are deployed, It will create lambda function which will send events from individual accounts to Heidi datacollection account. You can go ahead and remove stacksets once they are deployed as this is once time activity to backfill the events.
Q: Does HEIDI support multiple payer/AWS organizations?
A: Yes, HEIDI allows you to include additional organizational IDs during deployment.
Q: Is member setup required in all linked accounts?
A: No, if the data collection deployment is in the delegated health admin account, member setup is NOT required in all linked accounts. See Member Setup for more details.
Q: What is the cost of the Heidi solution?
A: The cost varies depending on the number of notifications. For up to 1 million notifications per month, it's approximately $30 including QuickSight licencing cost. For more details see calculations.
This implies that you are using Athena V2. Please upgrade worker to Athena V3. Athena V2 is on deprecated path.
AWS::QuickSight::RefreshSchedule
does not exist in certain regions such as us-west-1, ca-central-1 etc. You can comment out AWSHealthEventQSDataSetRefresh
section in AWSHealthEventQSDataSet.yaml and setup refresh schedule from QuickSight console.
3. Resource handler returned message: Insufficient permissions to execute the query. Insufficient Lake Formation permission(s) on heididatacollectiondb
In case Lakeformation is enabled, both the QuickSight Analysis author and the QuickSight Service Role need to provide access permissions for the heididatacollectiondb database and all associated tables.
- Navigate to Lakeformation and go to the "Permissions" tab.
- Under "Data Lake Permissions," select "Grant."
- Choose "SAML users and groups."
- Important: Provide the QuickSight ARN. This ARN represents the role that owns (or authors) the dataset.
- From the dropdown menu, select the "heididatacollectiondb" database and grant the necessary permission.
- Repeat the previous step (Step 5), but this time, select all tables and grant the required permission. Repeat same process for QuickSight Service Role.
- Your AWS environment is relatively new and does not currently have any AWS Health Events. To verify this, please check the AWS Health Dashboard on the AWS Console and send mock event.
- The QuickSight DataSet was created before the event could be backfilled by Kinesis Data Firehose. To resolve this, manually refresh the QuickSight DataSet.
- Go to EventBridge and see if it has failures sending events to SNS. It's possible that SNS is encrypted with KMS keys which is not accessible by EventBridge service role.
- Your Amazon SNS topic must use an AWS KMS key that is customer managed. Visit SNS-EB-Notification to learn more.