> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superblocks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure IP allowlist for databases

> This guide explains how to allow Superblocks to connect to databases on AWS and GCP

## Amazon Web Services (AWS)

* Log in to the [AWS Console](https://aws.amazon.com/console/)
* Navigate to the resource that you would like Superblocks to connect to
* If you are applying an allowlist to an RDS instance, the instance must be set to `Publicly accessible` (this is found under **Connectivity -> Additional configuration**)

<img src="https://mintcdn.com/superblocks/TqcwM8ac6ozIt6Fv/images/integrations/authentication/allowlist-aws-publicly-accessible.png?fit=max&auto=format&n=TqcwM8ac6ozIt6Fv&q=85&s=4907d9b4e771bded900dcff27a1c8853" alt="Ensure your RDS instance is publicly accessible" title="Ensure your RDS instance is publicly accessible" style={{width: "80%"}} width="1086" height="1078" data-path="images/integrations/authentication/allowlist-aws-publicly-accessible.png" />

* Select an existing Security Group or create a new one
* Select the **Inbound rules** tab at the bottom and click **Edit inbound rules**

<img src="https://mintcdn.com/superblocks/TqcwM8ac6ozIt6Fv/images/integrations/authentication/allowlist-inbound-rules.png?fit=max&auto=format&n=TqcwM8ac6ozIt6Fv&q=85&s=ef689f5d3237efb10d378bc856dce007" alt="Update inbound rules to ensure that Superblocks IP addresses are allowed" title="Update inbound rules to ensure that Superblocks IP addresses are allowed" style={{width: "80%"}} width="1378" height="850" data-path="images/integrations/authentication/allowlist-inbound-rules.png" />

* Choose the port (defaults: Postgres: 5432, MySQL: 3306, MSSQL: 1433)
* Set **Source** to "Custom" and enter the following IP addresses: <br />`107.22.228.244/32, 3.93.101.124/32, 34.209.17.50/32, 34.227.169.51/32, 35.155.119.178/32, 35.171.116.214/32, 35.86.18.137/32, 44.232.244.93/32, 54.148.33.216/32`

<img src="https://mintcdn.com/superblocks/TqcwM8ac6ozIt6Fv/images/integrations/authentication/allowlist-edit-inbound-rules.png?fit=max&auto=format&n=TqcwM8ac6ozIt6Fv&q=85&s=233bfe0afecaa4eecdce02ca7f9ed15b" alt="Add Superblocks IP addresses to the allow list" width="1641" height="658" data-path="images/integrations/authentication/allowlist-edit-inbound-rules.png" />

* Click **Save rules**

## Google Cloud Platform (GCP)

### Self hosted database

* Log in to the [GCP Console](https://console.cloud.google.com/)
* Navigate to [VPC Network -> Firewall](https://console.cloud.google.com/networking/firewalls)
* Select an existing Firewall Rule or create a new one
* Set the following:
  * **Direction of traffic**: Ingress
  * **Action on match**: Allow
  * **Targets**: All instances on network
  * **Source filter**: IPv4 ranges
  * **Source IPv4 ranges**: Add the following IP addresses: <br />`107.22.228.244/32, 3.93.101.124/32, 34.209.17.50/32, 34.227.169.51/32, 35.155.119.178/32, 35.171.116.214/32, 35.86.18.137/32, 44.232.244.93/32, 54.148.33.216/32`
  * **Protocols and ports**: Specified protocols and ports, TCP Ports (defaults: Postgres: 5432, MySQL: 3306, MSSQL: 1433)

<img src="https://mintcdn.com/superblocks/TqcwM8ac6ozIt6Fv/images/integrations/authentication/gcp_firewall_rule.png?fit=max&auto=format&n=TqcwM8ac6ozIt6Fv&q=85&s=4ca44570abd830ff06d449376037d1e9" alt="Add Superblocks IP addresses to the allow list in GCP" title="Add Superblocks IP addresses to the allow list in GCP" style={{width: "80%"}} width="1451" height="1072" data-path="images/integrations/authentication/gcp_firewall_rule.png" />

* Click Create/Save

### Cloud SQL

* Select a GCP [SQL instance](https://console.cloud.google.com/sql/instances)
* Navigate to Connections -> Networking
* In the Networking tab, make sure to add all IP addresses in the "Authorized Network" section found in the [IP Allowlist](/integrations/auth/database-connections#networking) by clicking "Add a Network"

<img src="https://mintcdn.com/superblocks/TqcwM8ac6ozIt6Fv/images/integrations/authentication/gcp.png?fit=max&auto=format&n=TqcwM8ac6ozIt6Fv&q=85&s=799b8032852dcb2483ca03585ed5d662" alt="Add Superblocks IP addresses to GCP SQL cloud instance" title="Add Superblocks IP addresses to the authorized networks in GCP SQL Instance" style={{width: "80%"}} width="1504" height="1532" data-path="images/integrations/authentication/gcp.png" />

* Click Done/Save
