terraform-aws-redshift
terraform-aws-redshift copied to clipboard
fix: Master password autogen constraints to match AWS requirements
Description
The issue is mentioned in #71 Basically, when specifying the master_password, AWS has constraints that
- Must be between 8 and 64 characters in length.
- Must contain at least one uppercase letter.
- Must contain at least one lowercase letter.
- Must contain one number.
- Can be any printable ASCII character (ASCII code 33-126) except ' (single quote), " (double quote), , /, or @.
Currently, we have the attribute min_special (sets as 1) which overrides the special (sets as false) and randomly assigns the constraints characters as mentioned above.
Motivation and Context
We want to use the built-in attribute create_random_password without having our custom random_password resource.
Breaking Changes
It does not break any backwards compatibility as master_password is currently under lifecycle's ignore_changes.
How Has This Been Tested?
- [ ] I have updated at least one of the
examples/*to demonstrate and validate my change(s) - [ ] I have tested and validated these changes using one or more of the provided
examples/*projects
- [ ] I have executed
pre-commit run -aon my pull request