https://pulumi.com logo
#aws
Title
# aws
l

little-soccer-5693

08/31/2022, 9:39 PM
does anyone know whether the deployment time for a cloudfront distribution can be reduced? often i find that every other stack resource deploys in <2 minutes but deployment time for a CF dist is often 10 minutes or longer.
f

fancy-spoon-7206

08/31/2022, 9:54 PM
Its not Pulumi, thats AWS.
l

little-soccer-5693

08/31/2022, 11:38 PM
right but is there an option to have pulumi not wait for the full cf distribution to complete before returning, with the tradeoff being that the caller then has to be aware that the full CF deployment can take longer.
on the aws console i can see that the cf dist is created very quickly it's just in that deploying state for the subsequent 10+ minutes
b

busy-magazine-48939

09/01/2022, 7:03 AM
@little-soccer-5693, check this property waitForDeployment: false:
If enabled, the resource will wait for the distribution status to change from
InProgress
to
Deployed
. Setting this to`false` will skip the process. Default:
true
.
l

little-soccer-5693

09/01/2022, 5:16 PM
@busy-magazine-48939 bingo! thank you!
2 Views