You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can authenticate to your DB instance using AWS Identity and Access Management (IAM) database authentication. The purpose of this exercise is to get to know an additonal method to secure access to RDS Database Instances.
Requirements
Create an RDS PostgreSQL Database (for myself at the point of recording v15.3 was used as Database Engine)
Use Defaults - make it publicly available
Enable IAM Authentication
Create the IAM Role/Policy
Create an User with IAM Credentials to Assume this Role
Create the Database User in the Server - map to IAM
Generate Auth Tokens
Connect to the Database
Desired Architecture
Tips and Tricks
Connecting to PostgreSQL with PSQL and ssmode=verify-full