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
질문됨 5년 전232회 조회
1개 답변
0

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

AWS
Mihai A
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠