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

hcl
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

Would you like to implement the enhancement?

No response

Source: hashicorp/terraform-provider-aws