Has anyone got an example of using `pulumi confg s...
# general
l
Has anyone got an example of using
pulumi confg set --secret
with a multi-line value? I see the note that it needs to be catted (not echoed?) in via a pipe. But when I do that, only the first line is being encrypted and kept; the rest of the file is ignored.
m
i think i cover this in my book! let me see make sure it still works 🙂
Copy code
$ echo "some                   
multi-line
string" | pulumi config set some_string --secret
Copy code
$ pulumi config get some_string    
some
multi-line
string
l
Yea, that's what I'm doing. But then
pulumi config get some_string
is showing only "some".
m
interesting 🤔
l
I'm also getting this on each step:
WARN[0000] The input device is not a TTY. The --tty and --interactive flags might not work properly
Now that I think of it, it may be to do with the fact that this is containerized. Pulumi isn't running on my host machine.
m
ah
yeah i’m no expert here, but that sounds plausible
l
Fancy adding a chapter on all the hoops you need to jump through in order to run Pulumi without installing it (or node, or anything else...)?
It's fun!
m
😬 😂 i actually haven’t tried that, but i should
l
Tried removing the
-it
flags from podman. That made the above warning go away (nice), but now the value is just a newline... no "some multi-line string" any more!
Aha! Got it. I need --interactive but not --tty.
m
oh nice! yay!
l
Makes sense, I guess. The input is a file, not a terminal.