Using Secret Manager for password bug?

0

I'm trying to use secrets manager to generate the password for DocumentDB and I'm stuck. I've managed to simplify to the below. It doesn't seem to matter if I generate it or not actually, when hard coded to a short password I still get the error.

      MasterUserPassword:         '{{resolve:secretsmanager:ab:SecretString}}'
Property validation failure: [Length of value {{{resolve:secretsmanager:ab:SecretString}}} for property {/MasterUserPassword} is greater than maximum allowed length {41}]

However the below works:

      MasterUserPassword:         '{{resolve:secretsmanager:a:SecretString}}'

Anyone else tried this or hit this issue or managed to get it working?
Looks like it's doing the 41 digit check on the pre-resolved string, not the actual password

gmc77
demandé il y a 5 ans239 vues
1 réponse
0

There was a bug in Cloudformation passing dynamic references, however it was fixed 3 years ago.

AWS
Mihai A
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions