Is there a way of seeing the amount of time parts ...
# general
a
Is there a way of seeing the amount of time parts of a pulumi up/preview command takes?
If it takes a lot of time, its hard knowing what part of the pulumi code is most guilty in the time it takes
h
are you using the pulumi cloud backend ? if so, it has detailed info on various steps.
a
running
pulumi up/preview --refresh
on CI servers, and sometimes locally
l
The Pulumi app makes it easy to find the info, but all backends do record the same information. Find the log of each update; it includes the time taken to complete the update. You need the verbose output to get all times, but the times for longer updates are shown even in the summary. For example, in this snippet, the two event rules were updated quickly, but the two lambda functions took a while:
Copy code
│  ├─ aws:cloudwatch:EventRule            ec2-stop                                      
 ~   │  │  └─ aws:lambda:Function              ec2-stop                    updated (16s)     [diff: ~code]
     │  └─ aws:cloudwatch:EventRule            ec2-start                                     
 ~   │     └─ aws:lambda:Function              ec2-start                   updated (24s)     [diff: ~code]