> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Integrate Your AWS Databases with Your Wix Site ## Article: Integrate Your AWS Databases with Your Wix Site ## Article Link: https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/aws/integrate-your-aws-databases-with-your-wix-site.md ## Article Content: # Integrate Your AWS Databases with Your Wix Site
__Important:__ This guide relies on AWS App Runner, which is closed to new customers as of April 30, 2026. New AWS customers who sign up after that date won’t be able to follow this guide as written. Existing App Runner customers are not affected and can continue to use the service as normal. For more details, see [AWS App Runner availability change](https://docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html).> **Note:** This feature is only available for sites with certain premium plans. If you need to use this feature, you can [upgrade your site](https://www.wix.com/upgrade/website). Learn more about [premium plans](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/premium-plans/about-premium-plans.md). Wix allows users to connect an external database to Wix sites using an [external database adaptor](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site.md#external-database-adaprots). Once the connection is set up, users can interact with these databases and use them to populate site elements as though they were Wix CMS collections. With an external database adaptor, you can use your database hosted on GCP (Google Cloud Platform), and fully integrate it into your Wix site. This means your GCP data can be managed via the [Wix Data APIs](https://dev.wix.com/docs/rest/business-solutions/cms/introduction.md), and used (with or without [datasets](https://dev.wix.com/docs/velo/velo-only-apis/$w/dataset/introduction.md)) to populate Wix UI elements like [repeaters](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/displaying-data/display-database-collection-content-in-a-repeater.md) and [tables](https://support.wix.com/en/article/cms-formerly-content-manager-displaying-collection-content-in-a-table). ## Overview This article walks you through the following: 1. Creating secrets to securely store your database credentials and your Wix Secret Key. 2. Creating and deploying a new App Runner service to host the Wix database adaptor. 3. Testing your service 4. Connecting your Wix site to your database. This tutorial assumes you already have your own database on AWS with a table containing some data. If you don't have this set up, refer to the [AWS documentation](https://docs.aws.amazon.com/) for instructions. This tutorial uses a container image with all the functionality needed to interface between your database and your Wix site. If you want to look under the hood, you can have a look at the [service plugin specifications](https://www.wix.com/velo/reference/spis/external-database-collections) for external database collections, and an overview of what's involved in [building your own adaptor](https://support.wix.com/en/article/velo-working-with-external-database-collections). ### Supported Databases We currently support the following AWS databases: - [Amazon RDS for MySQL](https://aws.amazon.com/rds/mysql/) - [Amazon RDS for PostgreSQL](https://aws.amazon.com/rds/postgresql/) - [Amazon Aurora](https://aws.amazon.com/rds/aurora/features/#:~:text=Close-,Amazon%20RDS,-RDS%20for%20MySQL)
**Prerequisites for Read-Write Access to Your Database Tables:**## Step 1 | Create secrets to securely store your database credentials and your Wix Secret Key The external database adaptor requires you to set some environment variables. Some of these variables, like the DB credentials, are sensitive and should not be visible. Use the [AWS Secrets Manager](https://us-east-1.console.aws.amazon.com/secretsmanager/listsecrets) to store and access these variables securely. > **Note:** We don't provide specific instructions for any configuration in AWS, as AWS's UI and flows may change. For further details on any of the instructions below, see the [AWS Secrets Manager documentation](https://docs.aws.amazon.com/secretsmanager/latest/userguide/create_secret.html). #### Create a New Secret for RDS Databases For RDS databases, you need to store 5 secret values: - **USERNAME** The username used to connect to your database instance. - **PASSWORD** The password used to connect to your database instance. - **DB** The name of the database to connect to. - **SECRET_KEY** A secret key used to connect your Wix site to the adaptor. To create a level of authentication between your site and the adaptor, each request your site sends to the adaptor contains this value in the payload. - **PERMISSIONS (optional)** A stringified JSON object that defines the read and write permissions for the tables in your database. It's important to note the following about setting permissions: - If you don't set permissions, they default to admin. With admin permissions, only site admins can read or write to the external database from a Wix site. API calls or CMS connections to the database don't work for anyone who isn't a site admin. This means site code that communicates with the external database might not work for site visitors. - When setting up permissions, make sure you use the ID of the table you want to read and write to, and not the database ID. **Note:** Customizing permissions for external databases is currently a developer preview feature, and may change. Changes to permissions settings are not reflected in the Wix Editor.
If you want your table to be read-write on your Wix site, it must contain the following columns: - `_id` - `_createdDate` - `_updatedDate` - `_owner` Tables without these columns will be read-only in your Wix site.