proud-animal-2285
09/25/2025, 12:02 PMpreviews
and up
takes 40-50 mins for production environment (stack)
• This causes all sorts of problems for us
◦ We can't apply things immidiately using puluimi (will take 40 mins)
◦ If for some reason there is error in up
or preview
another hour is needed
◦ Slower development cycle
◦ Merging the pulumi PR into main is so slow (since we run previews for each environment (stack) before merging)
Some technical information about our production stack
• We have over 21000 resources in the stack. Lesser number of resources in non-production stacks
• We have a lot of edge devices (say 1000s) and we create a bunch of things for these edge devices (certs, keys, AWS IoT thing, etc). A lot of those 21000 resources are because of these edge device AWS resources
• We run previews in CI but up
is run from local laptop
• When deploying production stack we do use PULUMI_SKIP_CHECKPOINTS=1
• We are using s3 backend
Some questions I have
1. Is 40-50 mins expected time here?
2. What can we do to improve the speed of previews and applies?white-vase-18996
09/25/2025, 4:08 PMwhite-vase-18996
09/25/2025, 4:12 PMmany-telephone-49025
09/25/2025, 4:42 PMproud-animal-2285
09/25/2025, 5:11 PMpulumi up
hit yes
2. I will try with increased parallelism. Also, check what the current limit itwhite-vase-18996
09/25/2025, 5:12 PMpulumi preview --refresh=false
?white-vase-18996
09/25/2025, 5:12 PMproud-animal-2285
09/25/2025, 5:15 PMrefresh = false
in CI using the action
- name: Preview ${{ inputs.stack-name }}
uses: pulumi/actions@v6
with:
pulumi-version: 3.193.0
command: preview
refresh: false
stack-name: ${{ inputs.stack-name }}
work-dir: ${{ inputs.work-dir }}
comment-on-pr: true
diff: true
white-vase-18996
09/25/2025, 5:18 PMproud-animal-2285
09/25/2025, 5:18 PMwhite-vase-18996
09/25/2025, 5:18 PMproud-animal-2285
09/25/2025, 5:18 PMwhite-vase-18996
09/25/2025, 5:19 PMwhite-vase-18996
09/25/2025, 5:19 PMechoing-dinner-19531
09/25/2025, 5:30 PMechoing-dinner-19531
09/25/2025, 5:30 PMproud-animal-2285
09/25/2025, 5:32 PMechoing-dinner-19531
09/25/2025, 5:42 PM