AWS Health Trigger
Webhooks are automated messages sent from applications when some alerts and notifications happen. They have a message, or payload, and are sent to a unique URL.
AWS Health provides ongoing visibility into your resource performance and the availability of your AWS services. The AWS Health delivers alerts and notifications triggered by changes in the health of AWS resources.
Prerequisites
Set up an API key.
Create a Workflow Using AWS Health Trigger Node
-
In the Spot console, select Connect > Workflows.
-
Click New Workflow and enter a name for the workflow.
-
Select AWS Health Trigger > Create Workflow.
View image
-
In the center panel of the workflow builder, click the AWS Health trigger node to open the right panel.
-
In the Webhook API Key Name, select the API key you created earlier.
-
Compose your workflow and save it.
-
In the workflow builder, copy the Webhook API Key Value and the Workflow Webhook URL. When you configure the third-party application, use those saved values.
View image
Create an Amazon EventBridge API Destination
- Create an EventBridge rule for AWS Health.
- On the Define rule detail page, select:
- Enable the rule to run on the selected event bus
- Rule type: Rule with an event pattern
- On the Build event pattern page, select:
- Event type: All Events
- On the Select target(s) page, select:
- Target type: EventBridge API destination
- PI destination: select an existing API destination or create a new one
- API destination endpoint: Workflow Webhook URL copied from Spot Connect AWS Health trigger node
- HTTP method: POST
- Connection type: select an existing connection or create a new one
- Destination type: Other
- Authorization type: API Key
- API key name: x-api-key
- Value: copy from Spot Connect AWS Health trigger node Webhook API Key Value
- Execution role: Create a new role for this specific resource and keep the default role name
- Review settings and create the rule.
Worfkflow Execution
The Spot Connect AWS Health workflow is triggered when an EventBridge event for Health occurs.
You can view the workflow executions in the Spot console > Connect > Executions.