Pretty simple question, does anyone know how to sa...
# general
m
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
You don't see any log output or you just don't get the file written?
m
Neither
I just get the usual preview and such, but nothing from the terraform provider
e
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
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
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
Yeah, thanks anyways, I’ll ask again in the morning if I don’t get a solution by then