SOLFIND
Web Lens
Portal home

Configure External PostgreSQL (AWS RDS) | Appsmith

https://docs.appsmith.com/getting-started/setup/instance-configuration/external-postgresql-rds • 64 KB fetched
Open original page


Configure External PostgreSQL (AWS RDS) | Appsmith

Skip to main content

Ask AI
Search

Ask Appsmith AI Submit message

Examples How do I install Appsmith using Docker? How do I connect to my local PostgreSQL database? How do I pass inputs from a widget to a query? How do I trigger multiple queries conditionally? How do I fix the error: This value does not evaluate to type Array<Object>?

Search

Try Appsmith

* Get Started

* Introduction

* Build Your First App

* Self Hosting

* New Installation Guides

* Manage Installation

* High Availability Guides

* Authentication Guides

* Helm Chart

* Custom Domain and SSL Guides

* Email Setup Guides

* Backup and Restore Guides

* Other Configuration Guides

* Configure External MongoDB

* Configure External PostgreSQL (AWS RDS)

* Configure External Redis

* In-Memory Git (Redis-backed)

* Configure PostgreSQL for SAML SSO (Azure)

* Configure HTTP/HTTPS Proxy

* Configure Environment Variables

* Get Container Logs

* Configure Google Maps

* Schedule Automatic Updates

* Disable Automatic Updates

* Reference

* Upgrade Installation Guides

* Concepts

* Connect Data

* Overview

* How-to Guides

* Reference

* Datasources

* Query Settings

* Concepts

* Build Apps

* Overview

* Quickstart

* How-to Guides

* Reference

* Widgets

* Accessibility

* Theme

* Sample Apps

* Write Code

* Overview

* How-to Guides

* Reference

* Global Objects

* Global Functions

* JS Libraries

* Fetch API

* Data Transformation

* JavaScript Settings

* Concepts

* Best Practices

* Manage Apps and Users

* Authentication

* Granular Access Control

* Versioning with Git

* Setup SCIM Provisioning

* Embed Appsmith

* Migrate Applications

* Audit Logs

* Branding

* External Client Portal

* Packages

* Overview

* Tutorial

* How-to Guides

* Reference

* Package Version Control

* GIT Apps with Packages Best Practices

* Code Packages

* UI Packages

* Workflows

* Overview

* Tutorial

* How-to Guides

* Reference

* Workflow Triggers

* Workflow Queries

* Workflow Functions

* Pass Parameters to Workflows

* Run History

* Troubleshooting

* Overview

* Self-hosting Errors

* Application Errors

* Product

* FAQ

* Security

* Telemetry

* Support at Appsmith

* Privacy Policy

* Release Notes

* Contribute

© 2026 Appsmith, Inc.

*

* Self Hosting

* Manage Installation

* Other Configuration Guides

* Configure External PostgreSQL (AWS RDS)
On this page
Configure External PostgreSQL (AWS RDS)

Appsmith relies on MongoDB, PostgreSQL and Redis. It uses PostgreSQL for SSO and workflows. By default in a single server deployment, it runs an embedded instance of each within the container. You can also switch to an external PostgreSQL instance to enable better performance, scalability, and reliability. This page provides steps on how to set up an external PostgreSQL instance on AWS RDS and how to connect it to your Appsmith instance.

Prerequisites ​

Before configuring an external PostgreSQL instance for your Appsmith deployment, ensure the following:

* This guide applies only to self-hosted Appsmith instances. If you haven't installed Appsmith yet, refer to the installation guides .

* You have access to an AWS account with permissions to create and manage RDS resources.

* You have access to change environment variables on your Appsmith deployment.

Create PostgreSQL instance on AWS RDS ​

Follow these steps to set up a PostgreSQL instance on AWS RDS for Appsmith. If you already have a PostgreSQL instance, skip to Connect Appsmith to external PostgreSQL .

*
Create an RDS PostgreSQL instance:

* Sign in to the AWS Management Console .

* Navigate to Aurora and RDS > Databases and click Create database .

* Choose Standard Create and select PostgreSQL as the engine.

* Choose the latest 16.x option for engine version

* Set a master username and choose the self-managed credentials management option. Save these credentials for later.

* For most deployments, you can start with db.t4g.small as the instance type and scale it as needed. We recommend gp3 storage type, allocating at least 20GB of storage, and checking the box "Enable storage autoscaling" allowing up to 100GB.

* In the connectivity section, ensure the instance is in the correct VPC and subnets. Configure security groups to allow inbound connections from your Appsmith containers.

* Complete the remaining configuration as needed and launch the instance.

*
Retrieve connection details:

* After the instance is available, note the endpoint (hostname), port (default: 5432), database name , username , and password . You will need these to configure Appsmith.

Connect Appsmith to external PostgreSQL ​

Follow these steps to connect your Appsmith instance to the external PostgreSQL database:

note
Encrypted connections are required. PostgreSQL uses TLS (often called SSL); set sslmode=require in APPSMITH_KEYCLOAK_DB_URL and use the environment variables in the steps below. On AWS RDS, encrypted connections are commonly enforced (for example with the rds.force_ssl parameter). Ensure security groups and networking allow Appsmith to reach the database endpoint. If you need details about Temporal and host verification, see the note after the connection variables.

* Docker

* Kubernetes

*
Navigate to the directory containing the docker-compose.yml file.

*
Add or update the following environment variables with your PostgreSQL connection details:

APPSMITH_KEYCLOAK_DB_URL : postgresql : //<username > : <password > @<hostname > /<database_name > ? sslmode=require
SQL_TLS_ENABLED : true
SQL_TLS_DISABLE_HOST_VERIFICATION : true
SQL_TLS : true

note
The SQL_TLS_DISABLE_HOST_VERIFICATION environment variable is only used by Temporal, which can have issues connecting to PostgreSQL over TLS on both Azure Database for PostgreSQL and AWS RDS. As an alternative, you can disable rds.force_ssl in your RDS parameter group, but this is less secure than disabling host verification.

*
Update the Appsmith server configuration to apply the changes:

docker-compose down && docker-compose up -d

*
Navigate to the directory containing your values.yaml file for your deployment.

*
Add or update the following environment variables with your PostgreSQL connection details:

postgresql :
enabled : false

applicationConfig :
APPSMITH_KEYCLOAK_DB_URL : postgresql : //<username > : <password > @<hostname > /<database_name > ? sslmode=require
APPSMITH_KEYCLOAK_DB_DRIVER : postgresql
SQL_TLS_ENABLED : true
SQL_TLS_DISABLE_HOST_VERIFICATION : true
SQL_TLS : true

note
The SQL_TLS_DISABLE_HOST_VERIFICATION environment variable is only used by Temporal, which can have issues connecting to PostgreSQL over TLS on both Azure Database for PostgreSQL and AWS RDS. As an alternative, you can disable rds.force_ssl in your RDS parameter group, but this is less secure than disabling host verification.

*
Apply the environment variables:

helm upgrade -i appsmith-ee appsmith-ee/appsmith -n appsmith-ee -f values.yaml

*
Restart the deployment:

# if using a statefulset:
kubectl rollout restart statefulset/appsmith-ee -n appsmith-ee
# if using a deployment:
kubectl rollout restart deployment/appsmith-ee -n appsmith-ee

Troubleshooting ​

If you face connection issues:

* Double-check the RDS endpoint, port, database name, username, and password.

* Ensure the RDS instance is accessible from your Appsmith server (check VPC, subnet, and security group settings).

* Confirm that the PostgreSQL instance is accepting connections from the Appsmith server’s IP address.

* Verify TLS settings: sslmode=require in APPSMITH_KEYCLOAK_DB_URL and the TLS-related variables match the steps above.

* Verify that the PostgreSQL user has the necessary privileges.

If you continue facing issues, contact support using the chat widget available in the bottom-right corner of this page.

See also ​

* Configure External MongoDB : Learn how to set up an external MongoDB instance.

Was this page helpful?

Edit this page

Previous
Configure External MongoDB
Next
Configure External Redis

* Prerequisites

* Create PostgreSQL instance on AWS RDS

* Connect Appsmith to external PostgreSQL

* Troubleshooting

* See also

Links found on this page

  1. Skip to main content [direct]
  2. Try Appsmith [direct]
  3. Get Started [direct]
  4. Build Your First App [direct]
  5. Self Hosting [direct]
  6. New Installation Guides [direct]
  7. Manage Installation [direct]
  8. High Availability Guides [direct]
  9. Authentication Guides [direct]
  10. Helm Chart [direct]
  11. Custom Domain and SSL Guides [direct]
  12. Email Setup Guides [direct]
  13. Backup and Restore Guides [direct]
  14. Other Configuration Guides [direct]
  15. Configure External Redis [direct]
  16. In-Memory Git (Redis-backed) [direct]
  17. Configure PostgreSQL for SAML SSO (Azure) [direct]
  18. Configure HTTP/HTTPS Proxy [direct]
  19. Configure Environment Variables [direct]
  20. Get Container Logs [direct]
  21. Configure Google Maps [direct]
  22. Schedule Automatic Updates [direct]
  23. Disable Automatic Updates [direct]
  24. Reference [direct]
  25. Upgrade Installation Guides [direct]
  26. Concepts [direct]
  27. Connect Data [direct]
  28. How-to Guides [direct]
  29. Reference [direct]
  30. Query Settings [direct]
  31. Concepts [direct]
  32. Build Apps [direct]
  33. Quickstart [direct]
  34. How-to Guides [direct]
  35. Reference [direct]
  36. Widgets [direct]
  37. Accessibility [direct]
  38. Theme [direct]
  39. Sample Apps [direct]
  40. Write Code [direct]
  41. How-to Guides [direct]
  42. Reference [direct]
  43. Global Objects [direct]
  44. Global Functions [direct]
  45. JS Libraries [direct]
  46. Fetch API [direct]
  47. Data Transformation [direct]
  48. JavaScript Settings [direct]
  49. Concepts [direct]
  50. Best Practices [direct]
  51. Granular Access Control [direct]
  52. Versioning with Git [direct]
  53. Setup SCIM Provisioning [direct]
  54. Embed Appsmith [direct]
  55. Migrate Applications [direct]
  56. Audit Logs [direct]
  57. Branding [direct]
  58. External Client Portal [direct]
  59. Packages [direct]
  60. Tutorial [direct]
  61. How-to Guides [direct]
  62. Reference [direct]
  63. GIT Apps with Packages Best Practices [direct]
  64. Code Packages [direct]
  65. UI Packages [direct]
  66. Workflows [direct]
  67. Tutorial [direct]
  68. How-to Guides [direct]
  69. Reference [direct]
  70. Workflow Queries [direct]
  71. Workflow Functions [direct]
  72. Pass Parameters to Workflows [direct]
  73. Run History [direct]
  74. Troubleshooting [direct]
  75. Self-hosting Errors [direct]
  76. Application Errors [direct]
  77. Product [direct]
  78. Security [direct]
  79. Telemetry [direct]
  80. Support at Appsmith [direct]