mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 01:26:43 +00:00
1.4 KiB
1.4 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
Google: google_storage_bucket_object | docs-google-storage-bucket-object | Creates a new object inside a specified bucket |
google_storage_bucket_object
Creates a new object inside an exisiting bucket in Google cloud storage service (GCS). Currently, it does not support creating custom ACLs. For more information see the official documentation and API.
Example Usage
Example creating a public object in an existing image-store
bucket.
resource "google_storage_bucket_object" "picture" {
name = "butterfly01"
source = "/images/nature/garden-tiger-moth.jpg"
bucket = "image-store"
}
Argument Reference
The following arguments are supported:
name
- (Required) The name of the object.bucket
- (Required) The name of the containing bucket.source
- (Required) A path to the data you want to upload.predefined_acl
- (Optional, Deprecated) The canned GCS ACL apply. Please switch togoogle_storage_object_acl.predefined_acl
.
Attributes Reference
The following attributes are exported:
md5hash
- (Computed) Base 64 MD5 hash of the uploaded data.crc32c
- (Computed) Base 64 CRC32 hash of the uploaded data.