AWS RDS
Connect a PostgreSQL or MySQL database hosted on Amazon RDS — including the network and security setup SMAQ needs.
This guide covers the AWS-specific pieces of connecting a PostgreSQL or MySQL database running on Amazon RDS. The actual SMAQ connection form steps are the same as any SQL database.
Step 1 — Collect connection details from RDS
In the AWS Console:
RDS → Databases.
Click your DB instance.
From the Connectivity & security tab, copy the Endpoint (e.g.
acme-prod.abc123.us-east-1.rds.amazonaws.com) and Port (5432 for Postgres, 3306 for MySQL).Note the DB name (Configuration tab).
[Screenshot needed] RDS instance Connectivity & security tab with Endpoint and Port highlighted.
Step 2 — Make the database reachable from SMAQ
SMAQ connects from a fixed set of outbound IPs. Either:
Option A — Add SMAQ's IPs to your RDS security group (recommended for production)
Get SMAQ's outbound IPs from info@smaq.io.
RDS → DB instance → Connectivity & security → VPC security group.
Click the security group → Inbound rules → Edit.
Add rules: PostgreSQL (5432) or MySQL (3306) from each of SMAQ's IPs.
Save.
Option B — VPC peering (enterprise only) Contact info@smaq.io to set up VPC peering between SMAQ's VPC and yours.
[Screenshot needed] RDS security group inbound rules with SMAQ IPs added.
Step 3 — Create a read-only DB user
Don't give SMAQ your master DB password. Create a least-privilege user:
Postgres:
MySQL:
Step 4 — Add the connection in SMAQ
SMAQ project → Data Source → Add data source.
Pick PostgreSQL or MySQL.
Fill in:
Host: the RDS endpoint
Port: 5432 or 3306
Database: your DB name
Username:
smaq_readonlyPassword: the password you set
SSL mode: Require
Click Test connection. SMAQ should report the tables it discovered.
Name and click Connect.
[Screenshot needed] SMAQ connection form filled in for an RDS Postgres instance.
Troubleshooting
Timeout — security group isn't allowing SMAQ's IPs, or the RDS instance has Publicly accessible = No without VPC peering.
"SSL required" error — set SSL mode to Require in SMAQ's connection form.
"Permission denied for table X" — re-run the GRANT SELECT step. New tables won't be readable by default; the
ALTER DEFAULT PRIVILEGESline above handles future tables.
Last updated