Once RDS instance was created with the option manage_master_user_password = true, it's not possible to change it to false and set a custom password.
However, it's possible to do via AWS Console.
[x] β I have searched the open/closed issues and my issue is not listed.
RDS credentials management option is changed from "Managed in AWS Secrets Manager" to "Self managed" with the Master password set as in the parameter password.
Actual behavior
Terraform throws the error:
Error: updating RDS DB Instance (complete-postgresql): operation error RDS: ModifyDBInstance, https response error StatusCode: 400, RequestID: xxxx0xxx-000x-0000-00xx-x00xxxx0000x, api error InvalidParameterValue: You can't specify MasterUserPassword for an instance with ManageMasterUserPassword enabled.
This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days
Description
Once RDS instance was created with the option
manage_master_user_password = true
, it's not possible to change it tofalse
and set a custom password. However, it's possible to do via AWS Console.Versions
Reproduction Code
Steps to reproduce the behavior:
manage_master_user_password = false
manage_master_user_password_rotation
,master_user_password_rotate_immediately
,master_user_password_rotation_schedule_expression
password = "completePostgresql16"
terraform apply
Expected behavior
RDS credentials management option is changed from "Managed in AWS Secrets Manager" to "Self managed" with the Master password set as in the parameter
password
.Actual behavior
Terraform throws the error:
Error: updating RDS DB Instance (complete-postgresql): operation error RDS: ModifyDBInstance, https response error StatusCode: 400, RequestID: xxxx0xxx-000x-0000-00xx-x00xxxx0000x, api error InvalidParameterValue: You can't specify MasterUserPassword for an instance with ManageMasterUserPassword enabled.