Hi folks, looking for a bit of help with the login...
# general
b
Hi folks, looking for a bit of help with the login capability. Is there a way to run the pulumi login from the automation API ?
m
FWIW, the automation API is simply wrapping the Pulumi CLI https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/automation/cmd.ts#L43-L59
b
interesting, thanks for sharing that code snip.
so , how would one use the pulumi.auto module to run 'pulumi login .. '
m
You'd have to patch the library, or do the same pulumi cmd wrapper like there,
const proc = childProcess.spawn("pulumi", "login", { env, cwd });
But... I think that's an interactive command. Maybe you shouldn't be doing
pulumi login