delightful-daybreak-4106309/26/2022, 10:32 PM
and install stuff via UserData, but now I’m hoping to sidestep the
command and just start the instance in the CLI app? I see that I can import github.com/pulumi/pulumi/pkg/v3/cmd/pulumi is made public in
, and I have access to the
, which seems to be the only valuable thing that is exported. I assumed I could just call the
and pass in any cli parameters I would have normally passed in, but that package is “package main”, so go doesn’t want me to import it, giving the error:
. Is this a problem that has been asked about before? Is this the first time it has been asked? Is this just the wrong thing to be doing with the tool? Are we opposed to moving all the sub-commands to a nested package (i.e. /pkg/cmd/pulumi/cmds/up.go) and making them Public?
import "<http://github.com/pulumi/pulumi/pkg/v3/cmd/pulumi|github.com/pulumi/pulumi/pkg/v3/cmd/pulumi>" is a program, not an importable package
delightful-daybreak-4106309/27/2022, 1:41 AM
delightful-daybreak-4106309/27/2022, 7:27 PM
import it I also tried adding in different use cases like “start ec2 instance programatically with pulumi”. But those got too far into the ec2 docs for pulumi and all that’s there. I also tried sprinkling in “reddit”/“stack overflow” to get away from the docs, but that didn’t help quite as much, and eventually I went searching for some official slack/discourse place for pulumi and ended up here.