@@ -6,7 +6,29 @@ resource "random_password" "this" {
66 special = true
77
88 // The password for the master database user can include any printable ASCII character except /, ", @, or a space.
9- override_special = " !#$%&*()-_=+[]{}<>:?"
9+ // We're also excluding the following characters:
10+ // ':' - not allowed by DMS (Database Migration Service)
11+ // ';' - not allowed by DMS
12+ // '+' - not allowed by DMS
13+ // '%' - not allowed by DMS, confuses url encoding
14+ // '?' - confuses url encoding
15+ // '#' - confuses url encoding
16+ // '[' - confuses url encoding
17+ // ']' - confuses url encoding
18+ // '{' - confuses url encoding
19+ // '}' - confuses url encoding
20+ // '(' - issues with batch files
21+ // ')' - issues with batch files
22+ // '&' - issues with batch files
23+ // '!' - issues with batch files
24+ // '^' - issues with batch files
25+ // '<' - issues with batch files
26+ // '>' - issues with batch files
27+ override_special = " $*-_="
28+
29+ lifecycle {
30+ ignore_changes = [override_special ] // Prevent changing passwords for provisioned dbs
31+ }
1032}
1133
1234resource "aws_secretsmanager_secret" "password" {
0 commit comments