https://pulumi.com logo
#general
Title
# general
a

adamant-father-26302

02/01/2024, 6:50 PM
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

hallowed-horse-57635

02/01/2024, 6:53 PM
are you using the pulumi cloud backend ? if so, it has detailed info on various steps.
a

adamant-father-26302

02/01/2024, 6:53 PM
running
pulumi up/preview --refresh
on CI servers, and sometimes locally
l

little-cartoon-10569

02/01/2024, 7:51 PM
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]