password
The password rotator enables you to rotate any user-defined key by generating random passwords.
If you want to generate memorable passphrases use the passphrase rotator
Example
The password rotator can be configured for any user-defined key.
values:
mypassword:
fn::rotate::password:
inputs:
minLower: 2
minUpper: 3
minSpecial: 5
overrideSpecial: "!@#$%&*()-_=+[]{}<>:"
length: 15
The previous example will generate passwords like: wn#ZQH}z$[H_&h*
When you open the environment, you should see output similar to the following:
{
"mypassword": {
"current": "[secret]",
"previous": "[secret]"
}
}
Schema reference
Reference schemas last updated on 2026-07-11, synced automatically from the Pulumi Cloud ESC API.
Inputs
Options for generating random passwords.
lengthnumber optionalThe length of the generated password.lowerboolean optionalWhether or not to include lowercase characters.minLowernumber optionalThe minimum number of lowercase characters to include.minNumericnumber optionalThe minimum number of numeric characters to include.minSpecialnumber optionalThe minimum number of special characters to include.minUppernumber optionalThe minimum number of uppercase characters to include.numericboolean optionalWhether or not to include numbers.overrideSpecialstring optionalThe special characters to choose from.specialboolean optionalWhether or not to include special characters.upperboolean optionalWhether or not to include uppercase characters.
State
currentstring optionalThe most recently generated password.previousstring optionalThe prior generated password.
Outputs
currentstring optionalThe most recently generated password.previousstring optionalThe prior generated password.
Troubleshooting
| Symptom | Likely cause | Resolution |
|---|---|---|
| Rotation fails with an invalid input error | length is outside 8–100, or the sum of minLower, minUpper, minNumeric, and minSpecial exceeds length. | Set length within range and lower the minimum-count inputs so they fit within the password length. |
| Generated passwords are missing a character class | The class is disabled (lower, upper, numeric, or special set to false) or its minimum is 0. | Enable the character class and set its corresponding minimum to require at least one character. |
Related
- Rotators - How credential rotation works in Pulumi ESC
- passphrase rotator - Generate memorable passphrases instead of random passwords
- Rotators reference - Catalog of all ESC rotators