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

modern-lawyer-58212

11/15/2023, 8:05 AM
Pretty simple question, does anyone know how to save output from the terraform AWS provider to a file? I’ve tried the following command but I didn’t get any log output. I don’t need any of the pulumi output, which is why I don’t have the
--v
and other flags set
Copy code
TF_LOG=TRACE TF_LOG_PATH=out.txt pulumi up --stack local
e

echoing-dinner-19531

11/15/2023, 8:07 AM
You don't see any log output or you just don't get the file written?
m

modern-lawyer-58212

11/15/2023, 8:08 AM
Neither
I just get the usual preview and such, but nothing from the terraform provider
e

echoing-dinner-19531

11/15/2023, 8:12 AM
That's strange, it looks like the engine should be sending these envvars to the provider. Might be worth running with the pulumi logs as well to see if that shows up anything obvious (-v10 --logtostderr --logflow)
m

modern-lawyer-58212

11/15/2023, 8:25 AM
I’m running my deployments against localstack, so all I’m getting are errors about my AWS creds with
pulumi logs
. Not sure how to get that command query the localstack instance
e

echoing-dinner-19531

11/15/2023, 8:32 AM
Yeh logs has it's own auth code different from the aws providers so I think they can go out of sync. I don't use it much so not sure how to point it at localstack. But at any rate that would be for logs from aws itself, while you want logs from the aws provider.
m

modern-lawyer-58212

11/15/2023, 8:45 AM
Yeah, thanks anyways, I’ll ask again in the morning if I don’t get a solution by then