1 Answer
- Newest
- Most votes
- Most comments
1
I think this mostly is because of limitations to the ODBC DSA GUI itself, with the password text box silently truncating when the pasted string is too long. The best way forward in general is to move from the Database auth type to IAM so that you don't need to manually generate the token in the first place.
In the AWS ODBC Driver's DSN configuration dialog:
Server: your-endpoint.rds.amazonaws.com
Port: 5432
Database: yourdb
User Name: yourrole (the IAM-mapped database role)
Password: leave blank
Auth Type: Change from Database → IAM
SSL Mode: require
Region: us-east-1 (or your actual region)
With AuthType=IAM, the driver itself calls the AWS SDK to generate the authentication token at connect time. The token never passes through the DSA's password field, so there's no truncation. The driver uses whatever AWS credentials are available on the machine:
%USERPROFILE%\.aws\credentials file (from aws configure)
Environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, optionally AWS_SESSION_TOKEN)
EC2/ECS instance profile (if running on AWS)
answered 2 months ago
Relevant content
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
