# Amazon EventBridge

## Overview <a href="#overview" id="overview"></a>

Amazon EventBridge is a serverless event bus that makes it easier to build event-driven applications at scale using events generated from your applications, integrated Software-as-a-Service (SaaS) applications, and AWS services. Configure routing rule to trigger Fylamynt incident to react to events happening in your application.

## Use Cases

The integration between Fylamynt and Amazon EventBridge lets you:

* Trigger a workflow in Fylamynt, when a matching event occurs on an EventBridge rule.
* Create workflows for steady-state management

## Configure Amazon EventBridge in Fylamynt

* Navigate to **Settings** > **Integrations** > **Amazon EventBridge**
* Configure a new integration instance

Details needed to set up **Amazon EventBridge instance** in **Fylamynt**:

| **Parameters**        | **Description**                                    | **Required** |
| --------------------- | -------------------------------------------------- | ------------ |
| Webhook API Key Name  | This is needed to store the key of Webhook API key | True         |
| Webhook API Key Value | API key value for webook                           | True         |

Follow the steps listed below in your **Amazon EventBridge Account** and get the desired parameters to enter in **Fylamynt**

* In the Authorize Fylamynt card on the integration settings page, select one of the **Webhook API Key Name** from the dropdown, and the corresponding **Webhook API Key Value** will be made visible
  * If no options are available for the Webhook API Key Name, first go to Settings --> API Keys --> Manage Keys to Create a New API Key.
* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2FndZCfjjfYiNVivxxiCS9%2Fimage.png?alt=media\&token=01bd030d-dfd4-4eef-9e0f-5b8f448569aa)
* Log in to your **AWS account**&#x20;
* Select service **Amazon EventBridge**
* Select Integrations -> API Destinations
* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2Fk8JLFAxESpZldjrSjvf4%2Fimage.png?alt=media\&token=061a9f9c-a30a-4d62-9eda-549a688124dc)
* Click **Create API destination**
* Create a new API destination named **Fylamynt-EventBridge**
* Provide the parameters as mentioned below

| **Parameter**            | **Description**                                                                      | **Where to get value**                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- |
| Name                     | Name of the EventBridge API destination                                              | **Fylamynt-EventBridge**                                                                                          |
| API destination endpoint | This endpoint would be called when event triggers                                    | Copy and paste the **Amazon EventBridge Webhook URL** in the Authorize Fylamynt card on integration settings page |
| HTTP method              | Select the HTTP method used for the invocation endpoint, such as GET, POST etc..     | **POST**                                                                                                          |
| Connection               | Create a new connection to use for this destination.                                 | Select **Create new connection**                                                                                  |
| Connection Name          | Enter a name for the connection. The name must be unique for your account and Region | **Fylamynt-EventBridge-Connection**                                                                               |
| Authorization type       | Choose the type of authorization to use to access the API destination                | API Key                                                                                                           |
| API Key name             | Name of the `API Key name`                                                           | **x-api-key**                                                                                                     |
| Value                    | Value of the API key                                                                 | Copy and paste the **Webhook API Key Value** in the Authorize Fylamynt card on integration settings page          |

* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2FrUcHi5zwT3SBBN881LbS%2Feventbridge-api-destination.png?alt=media\&token=d2345233-e877-4243-bcea-474e501f596f)
* Click **Create**
* Return to the settings page in Fylamynt and click Authorize.
* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2FGChJp356PYSNWF60GVXQ%2Fimage.png?alt=media\&token=21e4a935-41a0-4d46-aea0-9c6ecc33ede8)

Create the **EventBridge rule**

* For the new rule's Target,  select **API destination**
* Select **Fylamynt-EventBridge** as the API destination
* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2FK4IE4Ckzri1SkPHTKhLH%2Fimage.png?alt=media\&token=1d05c0ab-f35d-4963-97cc-3d4ab9476648)
* Click **Create**

## Integration Actions

You can add the following actions in the Fylamynt workflow builder, as part of your workflow.

1. [Amazon EventBridge Trigger](#amazon-eventbridge-trigger)

### Amazon EventBridge Trigger

Integration node triggers a workflow from an EventBridge rule with Fylamynt specific alert channel.

When creating a workflow, you are presented with a wizard to select the trigger type to use.

* On the workflow page, select **New Workflow**
* Enter the name of the Workflow.
* Select the **Amazon EventBridge** trigger type.
* Click **Create Workflow**
* ![](https://2168485084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXYvxfYq9m2JdKqaCdk%2Fuploads%2FKqko1IsBL7LDiCIIXlNA%2Fimage.png?alt=media\&token=90276082-ac70-4aaa-9c5f-455b86933708)

#### Configure the automatic execution of a workflow <a href="#fylamynt-task-management" id="fylamynt-task-management"></a>

To automatically run workflows with the Amazon EventBridge trigger, the incident type and assignment need to be configured. Follow the step-by-step instructions provided on the[ Incident Management - Automatic workflow execution](https://docs.fylamynt.com/getting-started-1/7.-incident-management-automatic-workflow-execution) page.
