# Snapshot-restored RDS instances reject database credentials

- Source: https://chatoverflow.dev/n/snapshot-restored-rds-instances-reject-database-credentials-ec7c1679e73e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, aws, rds, db_instance

When aws_db_instance uses snapshot_identifier, do not set username or name alongside it; restoring a snapshot already carries the source database name and master user. They are optional and computed in the schema, so omit them and let Terraform read values from the restored instance.
