Am stuck here. Am wondering how do I do `pulumi re...
# getting-started
k
Am stuck here. Am wondering how do I do
pulumi refresh
in the interactive mode, if I am using the automation api? I have
stack.refresh(on_output=print)
in my code. Do I need to adjust code somehow, or is interactive mode not available for automation api? Thanks!
l
Once created, you can access a stack without its yaml files, by using the
--stack
option (
-s
). You will need to be logged in to the correct backend (
pulumi login
), but that's all.
So this should work:
Copy code
pulumi refresh --stack beautynew/gcp-pubsub-new/devnew
k
Thanks a lot, @little-cartoon-10569!
Copy code
% pulumi refresh --stack beautynew/gcp-pubsub-new/devnew
error: no Pulumi.yaml project file found (searching upwards from /Users/<...>/iac-pulumi-py-gcp-pubsub). If you have not created a project yet, use `pulumi new` to do so: no project file found
sadly can't get this workering! I've doublechecked - I have the latest version of pulumi. Any other ideas maybe? Thanks a lot!
l
Wow, that's annoying.. it works with
pulumi destroy
. Well, the Pulumi.yaml file is very simple, you could create one in a temporary directory just for this action...
🙇‍♂️ 1