astonishing-oyster-32419
08/01/2021, 10:25 PMc@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
bored-table-20691
08/01/2021, 10:26 PMastonishing-oyster-32419
08/01/2021, 10:27 PMpackage 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
})
}⏎
name: proj
runtime: go
description: A minimal Go Pulumi program
bored-table-20691
08/01/2021, 10:30 PMnil
for NewKubernetesCluster, but I’m not sure of the top of my head.astonishing-oyster-32419
08/01/2021, 10:33 PMpulumi up
even affected by that third parameter in my code, the call to digitalocean.NewKubernetesCluster(ctx, "proj", nil)
????? @billowy-army-68599bored-table-20691
08/01/2021, 10:36 PMpulumi up
will execute your pulumi program, so if there is an error in it, it will return that error.astonishing-oyster-32419
08/01/2021, 10:36 PMbored-table-20691
08/01/2021, 10:37 PMastonishing-oyster-32419
08/01/2021, 10:38 PM