Hey guys, I'm trying to print json output during "update" operation in Pulumi. And I'm using Pulumi automation APIs to do the same. I don't see an option here to print json output here - https://pkg.go.dev/github.com/pulumi/pulumi/sdk/v3/go/auto/optup . Am I missing anything?
flaky-terabyte-36790
12/20/2024, 1:23 PM
Can you please help me get to json print option in pulumi go automation API?
m
modern-zebra-45309
12/20/2024, 8:26 PM
What information are you trying to print exactly? The automation API should produce the same output about resource changes and updates as the Pulumi CLI.
Yes. I wanted to store json formatted logs of pulumi's updates. The events stream api (via go channels) seems useful at this point as a good alternative - https://github.com/pulumi/pulumi/issues/7773
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.