File tree 2 files changed +17
-3
lines changed
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ ```release-note:none
2
+ ```
Original file line number Diff line number Diff line change @@ -645,16 +645,28 @@ func TestAccCGCSnippet_storageNewBucketExample(t *testing.T) {
645
645
646
646
func testAccCGCSnippet_storageNewBucketExample (context map [string ]interface {}) string {
647
647
return Nprintf (`
648
-
649
- # Create new storage bucket in the US region
648
+ # Create new storage bucket in the US multi-region
650
649
# with coldline storage
651
650
resource "google_storage_bucket" "static" {
652
651
name = "tf-test-new-bucket%{random_suffix}"
653
652
location = "US"
654
653
storage_class = "COLDLINE"
655
654
656
655
uniform_bucket_level_access = true
657
- }
656
+ }
658
657
658
+ # Upload files
659
+ # Discussion about using tf to upload a large number of objects
660
+ # https://stackoverflow.com/questions/68455132/terraform-copy-multiple-files-to-bucket-at-the-same-time-bucket-creation
661
+
662
+ # The text object in Cloud Storage
663
+ resource "google_storage_bucket_object" "default" {
664
+ name = "tf-test-new-object%{random_suffix}"
665
+ # Uncomment and add valid path to an object.
666
+ # source = "/path/to/an/object"
667
+ content = "Data as string to be uploaded"
668
+ content_type = "text/plain"
669
+ bucket = google_storage_bucket.static.id
670
+ }
659
671
` , context )
660
672
}
You can’t perform that action at this time.
0 commit comments