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
future-hairdresser-70637
08/02/2024, 11:47 AM
you're looking for
-f
or
--skip-preview
e.g.
pulumi up -fy
m
many-book-28422
08/02/2024, 1:14 PM
Thanks!
high five 1
c
clever-sunset-76585
08/03/2024, 6:36 AM
The preview is just a dry-run to give you an opportunity to cancel if it doesn't look right to you.
m
many-book-28422
08/05/2024, 7:21 AM
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
future-hairdresser-70637
08/05/2024, 12:04 PM
There is: Update Plans. Note that the feature is still in preview.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.