Skip to main content

prefect_gcp.experimental.bundles.upload

Functions

upload_bundle_to_gcs

upload_bundle_to_gcs(local_filepath: Path, bucket: str, key: str, gcp_credentials_block_name: str | None = None) -> UploadBundleToGcsOutput
Uploads a bundle file to a GCS bucket. Args:
  • local_filepath: The path to the bundle file to upload.
  • bucket: The name of the GCS bucket to upload the bundle to.
  • key: The key (path) to upload the bundle to in the GCS bucket.
  • gcp_credentials_block_name: The name of the GCP credentials block to use.
Returns:
  • A dictionary containing the bucket and key of the uploaded bundle.

Classes

UploadBundleToGcsOutput

The output of the upload_bundle_to_gcs step.