# AWS RDS

Install AWS RDS to allow P0 to manage access to RDS-hosted databases.

## Installing AWS RDS

### Prerequisites

Before you begin, ensure you have:

* A configured VPC where you want to install the integration
* The ability to create IAM policy, and assign policy to roles, in the VPC's account
* A P0 [AWS](/integrations/resource-integrations/aws.md) integration installed on the VPC's account
  * The integration must be configured for either federated login or login via Identity Center

### Installation

Follow these steps to install P0 on a VPC for RDS:

#### Via the P0 app

* Navigate to **Integrations > AWS RDS** in the P0 app
* Select the **IAM management** component
* Click **Add VPC**
* Enter the AWS VPC ID
* Choose the P0-installed AWS account
* Choose the region in which this VPC resides
* Click **Next**
* Run the supplied Terraform commands to configure P0's access to RDS
* Click **Next**
* Click **Finish**

#### Via the P0 Terraform provider

1. Ensure you have a configured P0 Terraform provider (follow the provider docs at <https://registry.terraform.io/providers/p0-security/p0/latest/docs> to configure).
2. Use the example module definition at <https://registry.terraform.io/providers/p0-security/p0/latest/docs/resources/aws_rds> to configure P0's access to your environment.
3. Run `terraform init` and `terraform apply`.

## Requesting access

To request access, first install P0 on an individual database instance (or cluster), then follow the steps in that database integration's "Requesting access" section.

See: [Requesting MySQL access](/integrations/resource-integrations/mysql/requesting-access.md) in [MySQL](/integrations/resource-integrations/mysql.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.p0.dev/integrations/resource-integrations/aws/managed-services/aws-rds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
