New user. What is the likely cause of this, please...
# getting-started
a
New user. What is the likely cause of this, please???
Copy code
c@macmini ~/D/p/do [255]> pulumi up
Previewing update (dev)

View Live: <https://app.pulumi.com/camfoo/proj/dev/previews/3457fd4c-619e-4354-8a0b-7cacba92baff>

     Type                 Name      Plan       Info
 +   pulumi:pulumi:Stack  proj-dev  create     1 error; 3 messages

Diagnostics:
  pulumi:pulumi:Stack (proj-dev):
    error: program failed: 1 error occurred:
    	* missing one or more required arguments
    exit status 1

    error: an unhandled error occurred: program exited with non-zero exit code: 1
b
What does your code look like?
a
Copy code
package main

import (
	"<http://github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean|github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean>"
	"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create an EKS cluster with the default configuration.


		cluster, err := digitalocean.NewKubernetesCluster(ctx, "dev", nil)
		if err != nil {
			return err
		}

		// Export the cluster's kubeconfig.
		ctx.Export("kubeconfig", cluster.KubeConfigs.Index(<http://pulumi.Int|pulumi.Int>(0)))
		return nil
	})
}⏎
In the Pulumi webpage, the path is: 'camfoo / proj / dev'
The pulumi.yaml contains:
Copy code
name: proj
runtime: go
description: A minimal Go Pulumi program
b
If I had to guess, it doesn’t like that the last parameter is
nil
for NewKubernetesCluster, but I’m not sure of the top of my head.
a
@bored-table-20691 thank you
@bored-table-20691 is
pulumi up
even affected by that third parameter in my code, the call to
digitalocean.NewKubernetesCluster(ctx, "proj", nil)
????? @billowy-army-68599
b
pulumi up
will execute your pulumi program, so if there is an error in it, it will return that error.
a
okay, good info, thanks
b
Whether that error comes from there - I am not sure.
a
@bored-table-20691, yes that is helping, with the right struct, it now complains about missing members. 🙂
Thank, you