You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if I am doing something wrong or a bug!
I am using Secrets Manager Get secret task and saving the secret value to a variable.
When I print the variable, I was expecting it to be valid JSON but it is not.
Hopefully this bug is fixed soon, as there is no way to get the exact value from a Secrets stored as a JSON, In my case I had to use awk and sed to extract the value, for OP's case would be like:
build-var-my-secret=$(echo $(build-var-my-secret) | awk -F ':' '{print $2}' | sed 's/}//')
echo $build-var-my-secret #will print bar
Describe the bug
Not sure if I am doing something wrong or a bug!
I am using Secrets Manager Get secret task and saving the secret value to a variable.
When I print the variable, I was expecting it to be valid JSON but it is not.
To reproduce
Expected behavior
was expecting valid JSON
{"foo":"bar"}
Instead got
{foo:bar}
Screenshots
Your Environment
Thanks!
The text was updated successfully, but these errors were encountered: