Does the pulumi esc support multi line strings? I am trying to store a PEM key as ESC secret but it doesn't seem to work, the same key works if I use pulumi config set command.
g
green-answer-22914
05/29/2024, 4:59 PM
Hi Vishal, it should. Maybe a leading/trailing character is sneaking in there?
b
bored-salesmen-65698
05/29/2024, 6:28 PM
Did you create them using the table view in UI? I think even in your privateKey, the
\n
is being replaced by a space, which is the same behaviour for me but for some reason, it is not working. I tried many ways to avoid the case of some extra char and with
pulumi config set
those methods work but not with esc.
bored-salesmen-65698
05/29/2024, 6:51 PM
Funny thing, pulumi didn't work the first time but if I run it a second time, then it works 😄
g
green-answer-22914
05/29/2024, 7:31 PM
yes, I created in table view. glad it's working for you now.
a
adventurous-butcher-54166
06/06/2024, 4:07 PM
I usually store PEMs as base64 encoded strings...
For setting that in ESC:
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.