# Amazon EventBridge

[<mark style="color:blue;">Amazon EventBridge</mark>](https://aws.amazon.com/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.

Route detailed alerts from Amazon EventBridge to the right users in Squadcast.

### Using Amazon EventBridge as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media&#x26;token=aaca6610-9d18-4dd4-9cf5-320042f326f1" alt="Add Amazon EventBridge as an alert source from service overview in Squadcast" width="563"><figcaption></figcaption></figure>

2\. Select **Amazon EventBridge**. Copy the displayed **Webhook URL** to [configure](#create-a-squadcast-webhook-connection-in-amazon-eventbridge) it within **Amazon EventBridge.** Finish by clicking **Add Alert Source** -> **Done**.

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-c320a6e6b18895bf00fcb8fd7615f8aa95156e93%2FAmazon%20EventBridge.png?alt=media&#x26;token=33a9ca5b-9eca-46af-b648-d7697ab28e34" alt="Configuration of Amazon EventBridge using webhook URL" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %} <mark style="color:orange;">**Important**</mark>**:**

When an alert source turns <mark style="color:green;">Active</mark>, it’ll show up under Configured Alert Sources. You can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source.\
\
An Alert Source is <mark style="color:green;">active</mark> if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

### Create a Squadcast Webhook Connection in Amazon EventBridge

1. Log in to your Amazon EventBridge dashboard. Head over to the **API destinations** tab and click on **Connections**. Then click on **Create connection.**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-750f82ec9d7c50723aa864fdffff5dc551aee74b%2Faws_eventbridge_2.png?alt=media&#x26;token=f961dff2-d1de-4e8b-a9e6-934a737a2049" alt="Create Squadcast webhook connections though API destinations in Amazon EventBridge dashboard" width="563"><figcaption></figcaption></figure>

2\. Fill in the **Connection name**, and select **API Key** as the Authorization type. Enter **Squadcast** as **API key name** and **true** as **Value**. Then click on **Create.**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-e00e2a0e0ebac1fccc7a3dfceb35df218a7b3c3e%2Faws_eventbridge_3.png?alt=media&#x26;token=16461c66-13e9-4a54-bbc5-38097943f3e1" alt="Select authorization type API key with key name and value" width="563"><figcaption></figcaption></figure>

3\. Switch the **API destinations** and click on **Create API destination.**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-9bcf3ea2fd34aac3e374ac7e128e78f3d83daac7%2Faws_eventbridge_4.png?alt=media&#x26;token=98226b22-5fb6-439a-8d74-9fbfc8a90197" alt="Create API destination Amazon EventBridge" width="563"><figcaption></figcaption></figure>

4\. Fill in the **Name** and paste the previously copied Squadcast Webhook URL in the placeholder for the **API destination endpoint**. Select **POST** as the **HTTP method** and under Connection, choose the previously created connection. Then click on **Create.**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-49158fdbbe0dc5ec67edfa34fdaacd4c35b3068d%2Faws_eventbridge_5.png?alt=media&#x26;token=aaa1f66e-e3bf-4ebb-b655-2bf274d67036" alt="API destination details in Amazon EventBridge" width="563"><figcaption></figcaption></figure>

* You can now mention your newly created **API destination** as a target under **Rules**.

That's it, you are good to go! Your Amazon EventBridge integration is now complete.

* Whenever Amazon EventBridge fires an alert, an incident will be created in Squadcast for it.

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
