I am encountering an issue similar to #23815. However, I am utilizing the fromGeneratedSecret() or fromGeneratedPassword() function to reuse the master username from the snapshot ('t3'). The CDK generates two secrets: one with the default username 'postgres' (which I did not expect) and the other with 't3' (as expected)
Expected Behavior
I anticipate having only one secret with the correct username ('t3'). The secret with the default username 'postgres' should not be present in the first place. Using the deprecated property credentials would resolve this issue.
Describe the bug
I am encountering an issue similar to #23815. However, I am utilizing the
fromGeneratedSecret()
orfromGeneratedPassword()
function to reuse the master username from the snapshot ('t3'). The CDK generates two secrets: one with the default username 'postgres' (which I did not expect) and the other with 't3' (as expected)Expected Behavior
I anticipate having only one secret with the correct username ('t3'). The secret with the default username 'postgres' should not be present in the first place. Using the deprecated property
credentials
would resolve this issue.Current Behavior
CDK generates two secrets
Reproduction Steps
Here is an example how I define my DB.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.122.0
Framework Version
No response
Node.js Version
18.12.1
OS
Sonoma 14.2.1
Language
TypeScript
Language Version
TypeScript (4.9.5)
Other information
No response