I've been trying to upload a large file (> 1 GB...
# google-cloud
I've been trying to upload a large file (> 1 GB) to GCS and it's a no-go. Here's the code:
Copy code
// Create a storage object for installer
		_, err = storage.NewBucketObject(ctx, "installer-object",
				Bucket: bucket.Name,
				Source: pulumi.NewFileAsset("./assets/installer.tgz"),
			pulumi.Timeouts(&pulumi.CustomTimeouts{Create: "10m", Update: "10m"}))
		if err != nil {
			return err
But I keep getting this error after 1m...
Copy code
google-native:storage/v1:BucketObject (installer-object):
    error: error sending upload request: Post "<https://storage.googleapis.com/upload/storage/v1/b/bucket-2f7c370/o?alt=json&name=installer-object-81c28a2&uploadType=multipart>": net/http: request canceled (Client.Timeout exceeded while awaiting headers): "<https://storage.googleapis.com/upload/storage/v1/b/asset-bucket-2f7c370/o?name=installer-object-81c28a2>" map[__autonamed:true bucket:asset-bucket-2f7c370 name:installer-object-81c28a2 source:0xc0004a94f0] 1820077047


Duration: 1m5s