Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). See the official documentation and API.
Example file object stored within a folder.
data "google_storage_bucket_object_content" "key" {
name = "encryptedkey"
bucket = "keystore"
}
output "encrypted" {
value = data.google_storage_bucket_object_content.key.content
}
The following arguments are supported:
bucket
- (Required) The name of the containing bucket.
name
- (Required) The name of the object.
The following attributes are exported:
content
- (Computed) Content-Language of the object content.