sqlalchemy-rdsiam
SQLAlchemy dialects to connect to Amazon RDS instances with IAM authentication
Decision gist · record as of 2026-08-14
Yes, with conditions. Install if you need IAM authentication for RDS PostgreSQL and can accept dormant maintenance (last release 2023-11-08). The package is simple, low-friction to install, and solves a real problem without requiring code changes. However, verify that it remains compatible with your SQLAlchemy, psycopg2/asyncpg, and boto3 versions before deploying to production. Clarify the license terms before use in proprietary contexts.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires IAM permissions configured in AWS to connect to the RDS instance; psycopg2 or asyncpg must be installed separately for the chosen PostgreSQL driver.
- Low install friction with only two runtime dependencies (SQLAlchemy and boto3).
- Maintenance is dormant—last release was 2023-11-08, though the repository remains active with a recent commit on 2024-06-26.
License · maintenance · safety
(unclear) — License treatment is unclear; the raw license field is empty and SPDX is not specified. Verify the actual license terms in the repository before use in proprietary or restricted contexts.
last release 2023-11-08 (1010 days) · last repo commit 2024-06-26 · 13 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 81,764 downloads/mo, #14,203 on PyPI
Alternatives
Verify before relying
pip install sqlalchemy-rdsiam
from sqlalchemy import create_engine
engine = create_engine('postgresql+psycopg2rdsiam://username@host/dbname')- Whether the package works with SQLAlchemy versions released after 2.0 (fact sheet mentions 1.3, 1.4, 2.0 support but last release was Nov 2023).
- Current compatibility status with modern versions of psycopg2 and asyncpg given dormant maintenance.
- Whether the bundled RDS CA certificate is kept current with AWS certificate rotations.
What it is and what it does
sqlalchemy-rdsiam is a SQLAlchemy dialect plugin that handles IAM-based authentication for Amazon RDS PostgreSQL databases. Instead of managing database passwords, it integrates with AWS IAM to generate short-lived connection tokens based on your IAM identity. The package supports both synchronous (psycopg2) and asynchronous (asyncpg) PostgreSQL drivers and works with SQLAlchemy 1.3, 1.4, and 2.0.
The dialect eliminates the need to modify your application code or maintain custom event handlers—you simply use a special connection string scheme (postgresql+psycopg2rdsiam:// or postgresql+asyncpgrdsiam://) and let the package handle token generation via boto3. It also offers optional features like automatic database creation, custom AWS region selection, and built-in RDS certificate bundle handling for SSL verification.
Use it for
- Connecting to RDS PostgreSQL from applications running on AWS with IAM roles instead of hardcoded database credentials.
- Integrating RDS access into open-source tools or frameworks without maintaining a fork to inject custom authentication logic.
- Asynchronous Python applications using asyncpg that need IAM-authenticated RDS connections.
- Temporary or ephemeral database access where short-lived tokens align with your security model.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
Install if you need IAM authentication for RDS PostgreSQL and can accept dormant maintenance (last release 2023-11-08). The package is simple, low-friction to install, and solves a real problem without requiring code changes. However, verify that it remains compatible with your SQLAlchemy, psycopg2/asyncpg, and boto3 versions before deploying to production. Clarify the license terms before use in proprietary contexts.
Install
sqlalchemy-rdsiam on PyPI
Before you install
Low install friction with only two runtime dependencies (SQLAlchemy and boto3). Maintenance is dormant—last release was 2023-11-08, though the repository remains active with a recent commit on 2024-06-26. No active development signals.
Requires IAM permissions configured in AWS to connect to the RDS instance; psycopg2 or asyncpg must be installed separately for the chosen PostgreSQL driver.
License in practice
License treatment is unclear; the raw license field is empty and SPDX is not specified. Verify the actual license terms in the repository before use in proprietary or restricted contexts.
Quickstart
pip install sqlalchemy-rdsiam
from sqlalchemy import create_engine
engine = create_engine('postgresql+psycopg2rdsiam://username@host/dbname')
Verify before relying
- Whether the package works with SQLAlchemy versions released after 2.0 (fact sheet mentions 1.3, 1.4, 2.0 support but last release was Nov 2023).
- Current compatibility status with modern versions of psycopg2 and asyncpg given dormant maintenance.
- Whether the bundled RDS CA certificate is kept current with AWS certificate rotations.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesSQLAlchemyboto3 |
| Maintenance | Dormant 1,010 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 81,764 / month, #14,203 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: sqlalchemy_rdsiam-1.0.3-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sqlalchemy rds iam authentication”
- sqlalchemy-rdsiamProvides SQLAlchemy dialects for connecting to Amazon RDS PostgreSQL…
- sqlalchemy-aurora-data-apiProvides a SQLAlchemy dialect for accessing PostgreSQL and MySQL…
- aurora-data-apiA DB-API 2.0 compatible client for AWS Aurora Serverless that tunnels…
Give your agent the search over MCP, or paste the wish link into any chat.
More Database packages
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.
Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.
YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.
Install it if you need to connect Python applications to YDB databases.
Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.
sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.
Install it if you need to manipulate, format, or analyze SQL text programmatically.
Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.
See also sqlalchemy-aurora-data-api · sqlalchemy-redshift · google-cloud-alloydb-connector · aurora-data-api · sqlalchemy-cockroachdb · aws-psycopg2 · sqlalchemy-pgspider · aws-advanced-python-wrapper · cloud-sql-python-connector · ec2-metadata