https://pulumi.com logo
a

adorable-action-51248

03/20/2020, 11:34 AM
A follow up question: is there a good way to ask the user who deploys if they want to use a snapshot or keep the current disk ? I am thinking to use an environment variable for this at the moment. Since the output of my index.js is buffered. I cannot prompt the user while executing the script, which would be my preferred method. So that I can display some choices.
g

gentle-diamond-70147

03/20/2020, 4:15 PM
Using the
pulumi config ...
system is likely the best option for this - https://www.pulumi.com/docs/intro/concepts/config/.
An environment variable would work too, but the config way makes it a bit more explicit and repeatable.
a

adorable-action-51248

03/20/2020, 4:35 PM
ok.
i was looking for more interaction. so that a user explicitly needs to confirm.
thanks !