This repository was archived by the owner on Nov 26, 2025. It is now read-only.
Add AWS IAM PostgreSQL passwordless authentication support#379
Closed
raviharshicorp wants to merge 15 commits intomainfrom
Closed
Add AWS IAM PostgreSQL passwordless authentication support#379raviharshicorp wants to merge 15 commits intomainfrom
raviharshicorp wants to merge 15 commits intomainfrom
Conversation
- Add postgres-passwordless module with IAM authentication - Update database module to support IAM authentication options - Add variables for enabling postgres passwordless mode - Update main module integration for postgres passwordless This enables PostgreSQL database authentication using AWS IAM instead of traditional username/password authentication.
|
Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement Learn more about why HashiCorp requires a CLA and what the CLA includes Have you signed the CLA already but the status is still pending? Recheck it. |
- Apply terraform fmt to align with CI/CD formatting requirements - Fix alignment in locals.tf for database module references - Fix alignment in main.tf for database module parameters - Fix alignment in modules/database/main.tf
Documentation will be added separately in future PR
tauhid621
suggested changes
Oct 9, 2025
tauhid621
left a comment
There was a problem hiding this comment.
The postgres-passwordless module does not seem to be used here. We are just deploying normal postgres in this.
The approach is also not similar to general use case. Look like we are creating an VM and running postgres using docker.
We should use a RDS instance for this.
2ebf76b to
f36dc79
Compare
…s authentication - Add postgres_iam_policy_arn output to service_accounts module - Add database_endpoint, database_name, database_username, database_password outputs to root module - Remove all Redis IAM authentication code to keep this branch PostgreSQL-only
d235fd3 to
b7ecd6f
Compare
…module call This fixes the module reference errors by removing Redis AWS IAM variables that no longer exist in the PostgreSQL-only terraform-random-tfe-utility branch.
- Add IAM authentication variables to service_accounts/variables.tf - Add PostgreSQL IAM policy resource and attachment to service_accounts/main.tf - Fixes PostgreSQL passwordless authentication support for FDO tests
- Fixes missing variable support for Redis IAM authentication - Required for PostgreSQL passwordless authentication tests
- Change local file paths back to git::https:// URLs for CI compatibility - Ensures modules can be downloaded in CI environment - Fixes 'no such file or directory' errors in release tests
- Add redis_enable_iam_auth variable for Redis IAM authentication control - Add db_iam_username variable for PostgreSQL IAM username specification - Required for PostgreSQL passwordless authentication tests
93770b3 to
36709ca
Compare
Author
|
Closing this as opening new PR: #381 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This enables PostgreSQL database authentication using AWS IAM instead of traditional username/password authentication.
Relates OR Closes https://github.com/hashicorp/terraform-enterprise/pull/3079
How Has This Been Tested
CI/CD: https://github.com/hashicorp/terraform-enterprise/actions/runs/18079265431/job/51440243884