# Amazon RDS (AWS)

[<mark style="color:blue;">Amazon RDS</mark>](https://aws.amazon.com/rds/) makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while automating time-consuming administration tasks, such as hardware provisioning, database setup, patching, and backups.

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

### How to integrate Amazon RDS with Squadcast

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="How to configure Amazon RDS integration in Squadcast" width="563"><figcaption></figcaption></figure>

2\. Select **Amazon RDS.** Copy the displayed **Webhook URL** to [configure](#in-aws-configure-sns-endpoint) it within **Amazon RDS**. 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-9aa683e96c3323b6efada95a0566153cc286052b%2FAmazon%20RDS%20(AWS).png?alt=media&#x26;token=010b1cff-9db8-4cc8-967c-3055a4d332b2" alt="Steps to add Amazon RDS integration to a service in Squadcast" 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 %}

### In AWS: Configure SNS Endpoint

**(1)** Log in to your AWS account and proceed to **SNS**

**(2)** Click on **Create topic**

**(3)** Within the dialogue box, fill in the details as per your requirements and then click on **Create topic**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4541ecbbf40e83f6469f4eae260d8c147dbdcd89%2Fevent_rules_2.png?alt=media&#x26;token=f5f3f381-e201-4c79-866a-e6ecc39c53ed" alt="Configuring SNS Endpoint in AWS: Steps include logging in, creating a topic, and filling in details as per requirements" width="563"><figcaption></figcaption></figure>

**(4)** Inside the topic, click on **Create subscription**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-0ddd1a57bb31506f76fc6efdf03e5a1b99b20394%2Fevent_rules_3.png?alt=media&#x26;token=12279a7e-b525-4aee-9fcb-a47407dcd2fc" alt="Configuring SNS Endpoint in AWS: Inside the topic, click on Create subscription" width="563"><figcaption></figcaption></figure>

**(5)** Select the protocol as **HTTPS** and in the endpoint enter the URL you obtained from the previous step

**(6)** Finally, click on **Create subscription** to create the subscription

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-617e70cec407d125fdd2b1ce5aa1918cd4221818%2Fevent_rules_4.png?alt=media&#x26;token=9442b424-b1c7-413e-8611-c08d3d577135" alt="Configuring SNS Endpoint in AWS: Select the protocol as HTTPS and Create subscription" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
**Important:**

The **Subscription ID** for the subscription should immediately change to **Confirmed** from **PendingConfirmation**. Click on the refresh button to verify the same.
{% endhint %}

### In AWS: Configure Amazon RDS

**(1)** Headover to your RDS dashboard and navigate to **Event Subscriptions**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-d6d15ae7e618d6d69f2f79291364207ec7309f0b%2Frds_1.png?alt=media" alt="Configuring Amazon RDS in AWS: Access RDS dashboard and navigate to Event Subscriptions for configuration." width="563"><figcaption></figcaption></figure>

**(2)** Click on **Create event subscription**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-6377b9bba0650ab6aa642b93da576f3974254d8f%2Frds_2.png?alt=media" alt="Configuring Amazon RDS in AWS: Access RDS dashboard and Create event subscription" width="563"><figcaption></figcaption></figure>

**(3)** Enter a suitable **Name**

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-9c037774f4e8c365560efa14e5202f1e27a9ceba%2Frds_3.png?alt=media" alt="Configuring Amazon RDS in AWS: Create event subscription Name" width="563"><figcaption></figcaption></figure>

**(4)** Next, select **Target** as **Amazon Resource Name (ARN)** and select the previously created ARN from the drop-down

<figure><img src="https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-cf7a942294dfd03ccedee8108920c957a8071445%2Frds_4.png?alt=media&#x26;token=dffbd020-27f5-45b5-84c9-d64c71953d4f" alt="Configuring Amazon RDS in AWS: Select Target as Amazon Resource Name (ARN)" width="563"><figcaption></figcaption></figure>

**(5)** Select the appropriate **Source type** from the drop-down and 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-24089832b41954e2d67f9ce198ad04e578e86d6d%2Frds_5.png?alt=media" alt="Configuring Amazon RDS in AWS: Select the appropriate Source type from the drop-down and click on Create" width="563"><figcaption></figcaption></figure>

That's it, you are good to go! Your Amazon RDS integration is complete. Now, whenever an event is triggered by Amazon RDS, an incident will be created in Squadcast for it.

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