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

# Configure IP allowlist for databases

> Allow your Prod AI data plane to connect to firewalled databases on AWS and GCP

On **Dedicated Cloud**, add your dedicated data plane's static egress IP addresses (provided by your Prod AI team) to your database firewall or security group. On **Managed BYOC**, data planes run inside your AWS account and connect over private VPC networking without public IP allowlists.

## Amazon Web Services (AWS)

* Log in to the [AWS Console](https://aws.amazon.com/console/)
* Navigate to the database resource that you want Prod AI to connect to
* If you are connecting over the internet to an RDS instance, ensure **Publicly accessible** is enabled under **Connectivity -> Additional configuration**

![Ensure your RDS instance is publicly accessible](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/integrations/authentication/allowlist-aws-publicly-accessible.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=597ff866cdda90a0b994f616bbc928db)

* Select the database's Security Group, open the **Inbound rules** tab, and click **Edit inbound rules**

![Update inbound rules to allow your Prod AI data plane IP addresses](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/integrations/authentication/allowlist-inbound-rules.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=fdcdbe798e735c67785981d46aad6be9)

* Choose the database port (defaults: Postgres `5432`, MySQL `3306`, MSSQL `1433`)
* Set **Source** to **Custom** and add each of your Prod AI data plane's static egress IP addresses (as `/32` CIDR blocks)

![Add Prod AI data plane IP addresses to the allowlist](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/integrations/authentication/allowlist-edit-inbound-rules.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=b9279aee1ad6cb7974e6b748573326cd)

* 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 with:
  * **Direction of traffic**: Ingress
  * **Action on match**: Allow
  * **Targets**: All instances on network (or the target tag for your database)
  * **Source filter**: IPv4 ranges
  * **Source IPv4 ranges**: Add your Prod AI data plane's static egress IP addresses (`/32`)
  * **Protocols and ports**: Specified protocols and ports, TCP (defaults: Postgres `5432`, MySQL `3306`, MSSQL `1433`)

![Add Prod AI data plane IP addresses to the allowlist in GCP](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/integrations/authentication/gcp_firewall_rule.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=5c4d4e29bab0625254d212c15700a7c1)

* Click **Create** or **Save**

### Cloud SQL

* Open your GCP [Cloud SQL instance](https://console.cloud.google.com/sql/instances)
* Navigate to **Connections -> Networking**
* Under **Authorized networks**, click **Add a network** and enter your Prod AI data plane's static egress IP addresses

![Add Prod AI data plane IP addresses to GCP Cloud SQL](https://mintcdn.com/prod-ai/u1kWRV0UHijNJjzG/images/integrations/authentication/gcp.png?fit=max\&auto=format\&n=u1kWRV0UHijNJjzG\&q=85\&s=b0c08302ead3494d4399f6a1331f4617)

* Click **Done** and **Save**


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.