Can you get the value of running pulumi whoami fro...
# general
b
Can you get the value of running pulumi whoami from code? Similar to pulumi.getProject() or pulumi.getStack() in JS
m
probably available in the automation-api
g
Also you could shell out to
pulumi whoami
to get it.
b
Thanks @millions-furniture-75402
👍 1
I need to be able to get it in my JS @gentle-diamond-70147 but yes thanks
g
Yea, you can do
const pulumiUser = child_process.execSync("pulumi whoami");
r
There is a built-in command for this already @gentle-diamond-70147, as noted by @millions-furniture-75402
👍 1
b
Thanks @gentle-diamond-70147