hey all, hope this is the right place to ask this ...
# general
l
hey all, hope this is the right place to ask this question. I'm trying to use the s3 website sample from the examples repo, but I'm getting an error when trying to preview or deploy a stack
Copy code
Previewing update (testing):

     Type                 Name                      Plan     Info
     pulumi:pulumi:Stack  aws-js-s3-folder-testing           1 error; 13 messages

Diagnostics:
  pulumi:pulumi:Stack (aws-js-s3-folder-testing):
    error: Unrecognized flag --query-mode
    usage: RUN <flags> [program] <[arg]...>
        where [flags] may include
            --project=p         set the project name to p
            --stack=s           set the stack name to s
            --config.k=v...     set runtime config key k to value v
            --parallel=p        run up to p resource operations in parallel (default is serial)
            --dry-run           true to simulate resource changes, but without making them
            --pwd=pwd           change the working directory before running the program
            --monitor=addr      [required] the RPC address for a resource monitor to connect to
            --engine=addr       the RPC address for a resource engine to connect to
            --tracing=url       a Zipkin-compatible endpoint to send tracing data to
        and [program] is a JavaScript program to run in Node.js, and [arg]... optional args to it.

    error: an unhandled error occurred: Program exited with non-zero exit code: 255
the version of the pulumi cli is v0.17.25 and the node version is v10.16.0
b
That is interesting. It’s doing that every time you run
pulumi up
? Did you get a preview?
l
yes, the preview gives the same response
b
Are you just running
pulumi up
with no other flags?
l
yep, not added any flags
I can run other pulumi programs and deploy them
b
So it’s just happening for this example. Curious.
l
I've seen it on this one and also the s3-folder component example, which I guess is very similar code
b
Have you successfully created an S3 bucket before?
I was just able to run it on my machine.
l
yes, I've created s3 buckets in other stacks
b
what if you run
pulumi up -d
l
It's the website functionality which I've not got working in my stack which is why I want to check the examples to see how that is done
I'm getting the same output with -d
b
Did you make any changes to the example code?
l
no, just checked and I've got the latest code from master
b
What if we run
pulumi up -v 3
to up the verbosity. Trying to find a helpful error.
l
I've got the deploy working now. I deleted the node_module and re-ran yarn install
I assume it was something to do with an old dependency, I remember I've tried running this code before ages ago with an older version of pulumi
b
Oh interesting.
l
thanks for the suggestions and the quick feedback
👍 1