Best practices when using secrets manager to an object that only accepts string #33843
Unanswered
andreprawira
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Take a look at this code where im using aws_secretsmanager to generate secrets
Then take a look at this code where am using aws_amazonmq to create CfnBroker and passing the password
when i cdk synth, i get a message saying its unsafe to use .unsafe_unwrap() which is also what the docs says. However, the password object only accepts string and i have to convert the password into a string so i can pass it. But then its not safe/best practice? So what do i do then?
Beta Was this translation helpful? Give feedback.
All reactions