Skip to main content

Django database backends to use AWS Database IAM Authentication

Project description

Django IAM database backends

Usage

pip install django-iam-dbauth

In your settings use the following

DATABASES = {
    "default": {
        "HOST": "<hostname>",
        "USER": "<user>",
        "ENGINE": 'django_iam_dbauth.aws.postgresql'
        "OPTIONS": {
            "use_iam_auth": True
        }
    }
}

Caveats

  1. You cannot use a cname for the host, it needs to be the actual hostname of the RDS instance.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page