New user. What is the likely cause of this, please...
# getting-started
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: <>

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

  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
What does your code look like?
Copy code
package main

import (

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
If I had to guess, it doesn’t like that the last parameter is
for NewKubernetesCluster, but I’m not sure of the top of my head.
@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
pulumi up
will execute your pulumi program, so if there is an error in it, it will return that error.
okay, good info, thanks
Whether that error comes from there - I am not sure.
@bored-table-20691, yes that is helping, with the right struct, it now complains about missing members. 🙂
Thank, you