pulumi / pulumi-cloudngfwaws

provider for Palo Alto Networks Cloud NGFW for AWS
Apache License 2.0
2 stars 0 forks source link

Verbose stdout when using the provider #23

Open zbuchheit opened 2 days ago

zbuchheit commented 2 days ago

Describe what happened

When attempting to use the provider, it seems like logs that are normally intercepted upstream are not in the Pulumi provider.

For example, running an up on a simple program produces a lot of output and also seems to mess with the output formatting for pulumi.

Sample program

import * as pulumi from "@pulumi/pulumi";
import * as cloudngfwaws from "@pulumi/cloudngfwaws"

const provider = new cloudngfwaws.Provider("my-provider", {
    jsonConfigFile: "./cloudngfwaws_creds.json",
})

new cloudngfwaws.Rulestack("my-rulestack", {
    name: "MyRule",
    scope: "Local",
    profileConfig: {
        antiSpyware: "BestPractice"
    }
}, {provider: provider})

Log output

Produced Output

Do you want to perform this update? yes
Updating (dev)

View in Browser (Ctrl+O): https://app.pulumi.com/zbuchheit/ngfwaws/dev/updates/5

     Type                              Name         Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
     Type                              Name          Status              Info
 +   pulumi:pulumi:Stack               ngfwaws-dev   created (10s)       4 messages
 +   ├─ pulumi:providers:cloudngfwaws  my-provider   created (0.16s)     
 +   └─ cloudngfwaws:index:Rulestack   my-rulestack  created (9s)        

Diagnostics:
  pulumi:pulumi:Stack (ngfwaws-dev):
    2024-11-13 09:00:41.688392 -0800 PST m=+0.363728501 write error: can't open new logfile: open /var/log/terraform.log: permission denied
    2024-11-13 09:00:41.6884777 -0800 PST m=+0.363814101 write error: can't open new logfile: open /var/log/terraform.log: permission denied

    2024-11-13T09:00:41.688-0800        INFO    provider/provider.go:356        sync_mode:false
    2024-11-13T09:00:41.688-0800        INFO    provider/provider.go:358        resource_timeout:2h0m0s

Resources:
    + 3 created

Duration: 12s

Affected Resource(s)

No response

Output of pulumi about

CLI          
Version      3.138.0
Go Version   go1.23.2
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  cloudngfwaws  0.0.2
language  nodejs        unknown

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

VenelinMartinov commented 1 day ago

Thanks for reporting. This seems very likely to be connected to https://github.com/pulumi/pulumi-terraform-bridge/issues/2489