Hey everyone, I am new to Pulumi. I have a script ...
# getting-started
m
Hey everyone, I am new to Pulumi. I have a script that generates ~800 resources at once and takes 15mins on my machine. I was wondering why is it that Pulumi generates the resources twice once in the preview stage and one more time when actually creating the resources. Is it possible to skip preview stage? I tried running with
pulumi up -y
but it only seems to skip the prompt for non-interactive use.
f
you're looking for
-f
or
--skip-preview
e.g.
pulumi up -fy
m
Thanks!
high five 1
c
The preview is just a dry-run to give you an opportunity to cancel if it doesn't look right to you.
m
Is there a pulumi equivalent of
terraform plan -out <file>
? With the
--skip-preview
it seems like I can do
terraform apply --auto-approve
but no option to freeze a plan/preview and then just apply the changes
f
There is: Update Plans. Note that the feature is still in preview.