Just curious to know how can we collect the logs u...
# aws
a
Just curious to know how can we collect the logs using
pulumi logs
All i see the message is
Copy code
Collecting logs for stack stack11 since 2021-01-05T13:55:54.000-08:00.
g
If you run
pulumi logs -f --logtostderr -v=9
, do you get more information?
a
well, it’s printing out the similar message.
is there any ways we can collect logs into log file for a particular stack?
g
Which logs specifically are you looking for?
a
just the stack logs.
Stdout, stderr for the stack provision
g
So the deployment logs from
up
or
destroy
?
a
At this moment i am trying with up.
pulumi up | pulumi logs -f --logtostderr -v=9
g
I see.
pulumi logs
is for something entirely different. It will actually retrieve logs from your cloud provider that are associated with resources in your stack - e.g. pull logs from cloudwatch for lambda invocations.
If you're wanting to send the output of
pulumi up
command to a file, I'd recommend using
tee
- e.g.
pulumi pre | tee preview.log
that will send to stdout and the file
preview.log
a
Ok that make sense to me, Your suggestion helped me to understand the scenario.
I appreciate