This message was deleted.
# general
s
This message was deleted.
e
That doesn't look right, you should pretty much never need to call NewContext yourself. Take a look at the golang automation example at https://github.com/pulumi/automation-api-examples/blob/main/go/inline_program/main.go to see how you should be calling into pulumi.
👀 1
w
The only i was able to call that
compute.GetVirtualMachine
was through
stack.Up()
. But that ends up deleteing all the resources in a stack , i just want to get
the power state of a vm
.
e
Pretty much all pulumi resource calls (including getters) need to run within a deployment, this might get changed at some point but for now we need the deployment infrastructure setup to invoke these calls correctly.
w
ok, thanks!