Hi! I’m kind of a Pulumi noob, and am testing it o...
# general
Hi! I’m kind of a Pulumi noob, and am testing it out in GCP. Running into this problem when running `pulumi up`:
Copy code
$ pulumi up
Previewing update (dev):

     Type                 Name                      Plan       Info
 +   pulumi:pulumi:Stack  pulumi-test-function-dev  create     1 error

  pulumi:pulumi:Stack (incoming-measurement-dev):
    error: Running program '~/pulumi' failed with an unhandled exception:
    (function (exports, require, module, __filename, __dirname) { import * as pulumi from "@pulumi/pulumi";

    SyntaxError: Unexpected token *
        at new Script (vm.js:80:7)
        at createScript (vm.js:274:10)
        at Object.runInThisContext (vm.js:326:10)
        at Module._compile (internal/modules/cjs/loader.js:664:28)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
        at Module.load (internal/modules/cjs/loader.js:600:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
        at Function.Module._load (internal/modules/cjs/loader.js:531:3)
        at Module.require (internal/modules/cjs/loader.js:637:17)
        at require (internal/modules/cjs/helpers.js:22:18)
Here’s my stack code:
Copy code
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const bucket = new gcp.storage.Bucket("my-test-bucket", {});
const archive = new gcp.storage.BucketObject("archive", {
    bucket: bucket.name,
    source: new pulumi.asset.FileArchive("./artifacts/cloudfunction.zip"),

const functionFunction = new gcp.cloudfunctions.Function("function", {
    availableMemoryMb: 128,
    description: "pulumi-test-function",
    entryPoint: "hello_world",
    labels: {
        "cloudfunction": "pulumi-test-function",
    sourceArchiveBucket: bucket.name,
    sourceArchiveObject: archive.name,
    timeout: 60,
    triggerHttp: true,