Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
magreenbaum committed Apr 20, 2024
1 parent d8f086b commit cacc9b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UPGRADE-6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ module "rds_after" {

### Retaining use of random password

The following example demonstrates the changes that users can elect to make to avoid any potential disruptions when upgrading if electing not to use RDS password management with SecretsManager `manage_master_user_password`.
The following example demonstrates the changes that users can elect to make to avoid any potential disruptions when upgrading if electing not to use RDS password management with SecretsManager `manage_master_user_password` when previously using `create_random_password`.

In this example, the `random_password` resource is added alongside the existing module to preserve the existing password.

```hcl
resource "random_password" "master_password" {
Expand All @@ -106,7 +108,7 @@ module "rds_after" {
}
```

A state move must be done to preserve the previously used random password.
A state move must be done to preserve the previously used random password. Example:

```
terraform state mv 'module.db.random_password.master_password[0]' random_password.master_password
Expand Down

0 comments on commit cacc9b0

Please sign in to comment.