Skip to content

googleStorageBucketObjectContent

Gets an existing object content inside an existing bucket in Google Cloud Storage service (GCS). See the official documentation and API.

\~> Warning: The object content will be saved in the state, and visiable to everyone who has access to the state file.

Example Usage

Example file object stored within a folder.

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleStorageBucketObjectContentKey =
  new google.dataGoogleStorageBucketObjectContent.DataGoogleStorageBucketObjectContent(
    this,
    "key",
    {
      bucket: "keystore",
      name: "encryptedkey",
    }
  );
new cdktf.TerraformOutput(this, "encrypted", {
  value: dataGoogleStorageBucketObjectContentKey.content,
});

Argument Reference

The following arguments are supported:

  • bucket - (Required) The name of the containing bucket.

  • name - (Required) The name of the object.

Attributes Reference

The following attributes are exported: