aws_db_instance: add support for MasterUserAuthenticationType
Author: aslatterCreated Sep 27, 2026Updated Sep 27, 2026
Labelsenhancementservice/rdsneeds-triage
Description
The RDS API CreateDBInstance supports the request-parameter MasterUserAuthenticationType which allows enabling IAM-based auth for the "master" database user, when using a PostgreSQL engine.
With this feature, I don't have to generate and manage static passwords, or integrate with Secrets Manager.
Affected Resource(s) or Data Source(s)
aws_db_instance
Potential Terraform Configuration
resource "aws_db_instance" "default" {
allocated_storage = 10
engine = "postgresql"
engine_version = "18"
instance_class = "db.t3.micro"
username = "foo"
# new feature request:
master_user_authentication_type = "iam-db-auth"
}
References
- https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/rds#CreateDBClusterInput
- https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/[email protected]/types#MasterUserAuthenticationType
Would you like to implement the enhancement?
No response
Source: hashicorp/terraform-provider-aws