Skip to content

postgres/awspostgres: add IAM authentication support#3713

Merged
vangent merged 6 commits into
google:masterfrom
giautm:g/iam-postgres
May 28, 2026
Merged

postgres/awspostgres: add IAM authentication support#3713
vangent merged 6 commits into
google:masterfrom
giautm:g/iam-postgres

Conversation

@giautm

@giautm giautm commented May 18, 2026

Copy link
Copy Markdown
Contributor

When the password is omitted from the URL, use AWS IAM auth tokens via auth.BuildAuthToken. Supports aws_profile and aws_role_arn params.

When the password is omitted from the URL, use AWS IAM auth tokens
via auth.BuildAuthToken. Supports aws_profile and aws_role_arn params.
giautm added 3 commits May 18, 2026 12:50
When the password is omitted from the URL, use AWS IAM auth tokens
via auth.BuildAuthToken. Supports aws_profile and aws_role_arn params.
Tokens are refreshed on each connection to handle expiry.

Update Terraform harness to PostgreSQL 16.6, enable IAM auth on the
RDS instance, and provision the IAM user with schema permissions.
@giautm

giautm commented May 18, 2026

Copy link
Copy Markdown
Contributor Author

cc @vangent, I've tested and confirmed it's working.

Screenshot 2026-05-18 at 20 25 20

@masseelch

Copy link
Copy Markdown

@vangent Any chance you can have a look? I am keen to switch from the fork back to the release. 🙏

Comment thread postgres/awspostgres/main.tf Outdated
Comment thread postgres/awspostgres/awspostgres.go Outdated
Comment thread postgres/awspostgres/awspostgres.go Outdated
Comment thread postgres/awspostgres/awspostgres.go Outdated
@giautm

giautm commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

@vangent done. Should I revert the test / example too? Since it reference to TF changes

@vangent vangent merged commit 054c82e into google:master May 28, 2026
9 checks passed
@giautm giautm deleted the g/iam-postgres branch May 29, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants