Heya, I'm going through the initial exercise and ...
# getting-started
c
Heya, I'm going through the initial exercise and I am getting a stack overflow with an extensive stack trace after modifying my initial application as described here: https://www.pulumi.com/docs/get-started/aws/modify-program/ I won't paste the error as it's wildly long, but here's my application:
Copy code
package main

import (
	"<http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/s3>"
	"<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 AWS resource (S3 Bucket)
		bucket, err := s3.NewBucket(ctx, "playground", nil)
		if err != nil {
			return err
		}

		_, err = s3.NewBucketObject(ctx, "index.html", &s3.BucketObjectArgs{
			Bucket: bucket.ID(),
			Source: pulumi.NewFileAsset("index.html"),
		})
		if err != nil {
			return err
		}

		// Export the name of the bucket
		ctx.Export("bucketName", bucket.ID())
		return nil
	})
}
Is there something I might be missing? The application runs fine until I introduce the NewBucketObject func call. Thanks in advance!
In searching the Slack it seems others experienced similar and the advice is to downgrade CLI. Perhaps that's the right approach? https://pulumi-community.slack.com/archives/C84L4E3N1/p1634851016035100
I resolved the issue by updating my
go.mod
to point to the newest version of pulumi