SecretsManager secretStringTemplate
not using variable
#15383
Unanswered
nabeelvalley
asked this question in
Q&A
Replies: 1 comment
-
Is it possible that |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi, I'm trying to generate some credentials using SecretsManager but it seems to not be behaving as expected:
I am using the following code to generate a secret:
Where
this.dbUsername
is defined at a class level:According to my understanding the username should be present in the secret, but the resulting object is this (Via SecretsManager in the Console):
However, if I don't use the variable and put the username straight into the template it works fine:
I've also noticed a similar issue with the
id
passed tosm.Secret
, but I have not investigated as completelyNot sure if this is a bug or expected behaviour - does this also apply to other constructs too - it's not what I would expect to happen in this context
Beta Was this translation helpful? Give feedback.
All reactions